From eddce8b17bc4a1a7bcfc8986e83954bfc8e8e1a1 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Thu, 4 Feb 2021 11:22:41 +0900
Subject: [PATCH] Use --node-env in webpack-cli instead of corss-env in pack
command
---
package.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 248d0a88..b42f5d1e 100644
--- a/package.json
+++ b/package.json
@@ -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"
},