23 lines
669 B
Diff
23 lines
669 B
Diff
--- a/config/webpack.config.js
|
|
+++ b/config/webpack.config.js
|
|
@@ -331,6 +331,7 @@
|
|
|
|
resolve: {
|
|
extensions: ['.js'],
|
|
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
|
|
alias: {
|
|
'~': path.join(ROOT_PATH, 'app/assets/javascripts'),
|
|
'emojis': path.join(ROOT_PATH, 'fixtures/emojis'),
|
|
@@ -340,7 +341,12 @@
|
|
'vendor': path.join(ROOT_PATH, 'vendor/assets/javascripts'),
|
|
'vue$': 'vue/dist/vue.esm.js',
|
|
}
|
|
+ },
|
|
+
|
|
+ resolveLoader: {
|
|
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
|
|
}
|
|
+
|
|
}
|
|
|
|
config.entry = Object.assign({}, autoEntries, config.entry);
|