set NODE_PATH and --context for webpack command
This commit is contained in:
parent
14d8f10bf7
commit
93b5160611
1 changed files with 1 additions and 1 deletions
2
debian/patches/0400-use-npm-webpack.patch
vendored
2
debian/patches/0400-use-npm-webpack.patch
vendored
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue