Skip to content

Commit

Permalink
experimental SSR support
Browse files Browse the repository at this point in the history
  • Loading branch information
phortx committed Oct 17, 2018
1 parent 1b7e8fa commit cfef891
Show file tree
Hide file tree
Showing 11 changed files with 58,190 additions and 36 deletions.
11 changes: 9 additions & 2 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,16 @@ function buildEntry ({ input, output }) {
output: {
ascii_only: true
}
}).code;
});

return write(output.file, minified, true);
if (minified.error) {
console.error('Error while minifying code!', minified.error);
console.log('Will write unminified code (for debugging purposes)!');
} else {
code = minified.code;
}

return write(output.file, code, true);
}

return write(output.file, code);
Expand Down
4 changes: 2 additions & 2 deletions build/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ const configs = {
format: 'umd',
env: 'development'
},
umdProd: {
/*umdProd: {
input: resolve('lib/index.cjs.js'),
file: resolve('dist/vuex-orm-graphql.min.js'),
format: 'umd',
env: 'production'
},
},*/
commonjs: {
input: resolve('lib/index.cjs.js'),
file: resolve('dist/vuex-orm-graphql.common.js'),
Expand Down
Loading

0 comments on commit cfef891

Please sign in to comment.