debian-mirror-gitlab/debian/patches/0410-set-webpack-root.patch

12 lines
557 B
Diff
Raw Normal View History

2017-08-23 09:38:10 +05:30
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
2018-03-18 12:27:51 +05:30
@@ -12,7 +12,7 @@
2017-08-23 09:38:10 +05:30
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
-var ROOT_PATH = path.resolve(__dirname, '..');
+var ROOT_PATH = '/usr/share/gitlab';
var IS_PRODUCTION = process.env.NODE_ENV === 'production';
2017-09-10 18:21:32 +05:30
var IS_DEV_SERVER = process.argv.join(' ').indexOf('webpack-dev-server') !== -1;
2017-08-23 09:38:10 +05:30
var DEV_SERVER_HOST = process.env.DEV_SERVER_HOST || 'localhost';