From 3be81a883d8894db73ef9723445ba22e7accdea0 Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Fri, 1 Sep 2017 17:28:47 +0530 Subject: [PATCH] set NODE_PATH for webpack --- debian/patches/0400-use-npm-webpack.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/patches/0400-use-npm-webpack.patch b/debian/patches/0400-use-npm-webpack.patch index 27b1adabaa..4c94e944e8 100644 --- a/debian/patches/0400-use-npm-webpack.patch +++ b/debian/patches/0400-use-npm-webpack.patch @@ -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": {