Optimize production output, much faster execution
This commit is contained in:
parent
39040adb45
commit
20c18db7f6
2 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
|||
"scripts": {
|
||||
"compile:electron": "webpack --progress --config webpack.electron.config.js",
|
||||
"compile:web": "webpack --config webpack.web.config.js",
|
||||
"compile": "yarn compile:electron && yarn compile:web",
|
||||
"compile": "cross-env NODE_ENV=production yarn compile:electron && cross-env NODE_ENV=production yarn compile:web",
|
||||
"dev": "yarn dev:electron",
|
||||
"dev:electron": "cross-env NODE_ENV=development node ./src/platforms/electron/devServer.js",
|
||||
"dev:web": "webpack-dev-server --open --hot --progress --config webpack.web.config.js",
|
||||
|
|
|
@ -12,9 +12,9 @@ const UI_ROOT = path.resolve(__dirname, 'src/ui/');
|
|||
const STATIC_ROOT = path.resolve(__dirname, 'static/');
|
||||
const DIST_ROOT = path.resolve(__dirname, 'dist/');
|
||||
|
||||
const baseConfig = {
|
||||
let baseConfig = {
|
||||
mode: ifProduction('production', 'development'),
|
||||
devtool: ifProduction('source-map', 'eval-source-map'),
|
||||
devtool: ifProduction(false, 'eval-source-map'),
|
||||
node: {
|
||||
__dirname: false,
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue