From b6f38e3242701059e2797a8af2c44e8329234c24 Mon Sep 17 00:00:00 2001 From: ssysm Date: Sun, 3 Jun 2018 13:42:29 -0400 Subject: [PATCH] fix application can't build on windows in production mode related to issue #86 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1828892c3..26f114974 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "test": "npm run test-unit && eslint src && npm run prerender -- /dev/null && rm -rf lib", "test-unit": "mocha --compilers js:babel-register test", "prerender": "babel src --out-dir lib && node lib/render.js", - "build": "NODE_ENV=production browserify src/index.js | uglifyjs -c -m > bundle.js && npm run prerender -- index.html", + "build": "cross-env NODE_ENV=production browserify src/index.js | uglifyjs -c -m > bundle.js && npm run prerender -- index.html", "release": "standard-version && git push --follow-tags origin master; npm publish" }, "browserify": { @@ -59,6 +59,7 @@ "devDependencies": { "babel-register": "^6.3.13", "budo": "^11.0.0", + "cross-env": "^5.1.6", "cz-conventional-changelog": "2.1.0", "expect": "^23.0.1", "mocha": "^5.0.0",