set NODE_PATH for webpack

This commit is contained in:
Pirate Praveen 2017-09-01 17:28:47 +05:30
parent 558f194c06
commit 3be81a883d

View file

@ -1,10 +1,12 @@
--- a/package.json
+++ b/package.json
@@ -9,7 +9,7 @@
@@ -8,8 +8,8 @@
"karma": "karma start config/karma.config.js --single-run",
"karma-coverage": "BABEL_ENV=coverage karma start config/karma.config.js --single-run",
"karma-start": "karma start config/karma.config.js",
"webpack": "webpack --config config/webpack.config.js",
- "webpack": "webpack --config config/webpack.config.js",
- "webpack-prod": "NODE_ENV=production webpack --config config/webpack.config.js"
+ "webpack": "NODE_PATH=/usr/share/gitlab/node_modules node_modules/.bin/webpack --config config/webpack.config.js",
+ "webpack-prod": "NODE_ENV=production NODE_PATH=/usr/share/gitlab/node_modules node_modules/.bin/webpack --config config/webpack.config.js"
},
"dependencies": {