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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
478 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
@@ -44,7 +44,7 @@
2022-11-26 12:48:29 +05:30
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')