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

14 lines
452 B
Diff
Raw Normal View History

2020-04-13 13:49:04 +05:30
Debian specific patch to help webpack find sources
2017-08-23 09:38:10 +05:30
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
2021-10-01 04:34:20 +05:30
@@ -24,7 +24,7 @@
2021-04-17 20:43:06 +05:30
const MonacoWebpackPlugin = require('./plugins/monaco_webpack');
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';
2021-10-01 04:34:20 +05:30
const SUPPORTED_BROWSERS = fs.readFileSync(path.join(ROOT_PATH, '.browserslistrc'), 'utf-8');
const SUPPORTED_BROWSERS_HASH = crypto
.createHash('sha256')