debian-mirror-gitlab/debian/patches/0500-set-webpack-root.patch
2021-04-17 20:43:06 +05:30

13 lines
541 B
Diff

Debian specific patch to help webpack find sources
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -20,7 +20,7 @@
const MonacoWebpackPlugin = require('./plugins/monaco_webpack');
-const ROOT_PATH = path.resolve(__dirname, '..');
+const ROOT_PATH = '/usr/share/gitlab';
const VENDOR_DLL = process.env.WEBPACK_VENDOR_DLL && process.env.WEBPACK_VENDOR_DLL !== 'false';
const CACHE_PATH = process.env.WEBPACK_CACHE_PATH || path.join(ROOT_PATH, 'tmp/cache');
const IS_PRODUCTION = process.env.NODE_ENV === 'production';