debian-mirror-gitlab/debian/patches/0500-set-webpack-root.patch
2021-10-28 01:36:19 +05:30

13 lines
452 B
Diff

Debian specific patch to help webpack find sources
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -25,7 +25,7 @@
const MonacoWebpackPlugin = require('./plugins/monaco_webpack');
-const ROOT_PATH = path.resolve(__dirname, '..');
+const ROOT_PATH = '/usr/share/gitlab';
const SUPPORTED_BROWSERS = fs.readFileSync(path.join(ROOT_PATH, '.browserslistrc'), 'utf-8');
const SUPPORTED_BROWSERS_HASH = crypto
.createHash('sha256')