debian-mirror-gitlab/debian/patches/nodejs/0010-set-webpack-root.patch

14 lines
542 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
@@ -28,7 +28,7 @@
2021-04-17 20:43:06 +05:30
const MonacoWebpackPlugin = require('./plugins/monaco_webpack');
2021-12-11 22:56:32 +05:30
const GraphqlKnownOperationsPlugin = require('./plugins/graphql_known_operations_plugin');
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')