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

12 lines
571 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 @@
2018-03-27 20:24:05 +05:30
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
2017-08-23 09:38:10 +05:30
2018-03-27 20:24:05 +05:30
-const ROOT_PATH = path.resolve(__dirname, '..');
+const ROOT_PATH = '/usr/share/gitlab';
const IS_PRODUCTION = process.env.NODE_ENV === 'production';
const IS_DEV_SERVER = process.argv.join(' ').indexOf('webpack-dev-server') !== -1;
const DEV_SERVER_HOST = process.env.DEV_SERVER_HOST || 'localhost';