Use --node-env in webpack-cli instead of corss-env in pack command

This commit is contained in:
AkiraFukushima 2021-02-04 11:22:41 +09:00
parent 8c29f5167a
commit eddce8b17b
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@
"package:win32": "electron-builder --win --ia32",
"package:win64": "electron-builder --win --x64",
"pack": "yarn run pack:main && yarn run pack:renderer",
"pack:main": "cross-env NODE_ENV=production webpack --mode production --progress --config .electron-vue/webpack.main.config.js",
"pack:renderer": "cross-env NODE_ENV=production webpack --mode production --progress --config .electron-vue/webpack.renderer.config.js",
"pack:main": "webpack --node-env=production --mode production --progress --config .electron-vue/webpack.main.config.js",
"pack:renderer": "webpack --node-env=production --mode production --progress --config .electron-vue/webpack.renderer.config.js",
"postinstall": "yarn run lint:fix",
"spec": "NODE_ENV=test jest -u --maxWorkers=3"
},