debian-mirror-gitlab/debian/patches/0500-set-webpack-root.patch
2018-11-08 20:39:57 +05:30

11 lines
528 B
Diff

--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -7,7 +7,7 @@
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
-const ROOT_PATH = path.resolve(__dirname, '..');
+const ROOT_PATH = '/usr/share/gitlab';
const CACHE_PATH = path.join(ROOT_PATH, 'tmp/cache');
const IS_PRODUCTION = process.env.NODE_ENV === 'production';
const IS_DEV_SERVER = process.argv.join(' ').indexOf('webpack-dev-server') !== -1;