set NODE_PATH and --context for webpack command

This commit is contained in:
Pirate Praveen 2017-08-23 09:13:29 +05:30
parent 14d8f10bf7
commit 93b5160611

View file

@ -5,7 +5,7 @@
"karma-start": "karma start config/karma.config.js",
"webpack": "webpack --config config/webpack.config.js",
- "webpack-prod": "NODE_ENV=production webpack --config config/webpack.config.js"
+ "webpack-prod": "NODE_ENV=production 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 --context /usr/share/gitlab/app/assets/javascripts --config config/webpack.config.js"
},
"dependencies": {
"babel-core": "^6.22.1",