Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2019-02-28 13:55:13 +0300
committerPhil Hughes <me@iamphill.com>2019-02-28 13:55:13 +0300
commit573dd592b0eebdec8c75506d5a4ebbb66c9a1ab4 (patch)
tree975221cd9d3343aa5dcc6588932e1b2990f1ae97 /config/webpack.config.js
parentf27536950fcc53bd4e4a74e323bcc88eb2ecb3a2 (diff)
CE port of noteable-discussion-ee-differences
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index cf9e77d2424..64e6ec49219 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -245,6 +245,17 @@ module.exports = {
jQuery: 'jquery',
}),
+ new webpack.NormalModuleReplacementPlugin(/^ee_component\/(.*)\.vue/, function(resource) {
+ if (Object.keys(module.exports.resolve.alias).indexOf('ee') >= 0) {
+ resource.request = resource.request.replace(/^ee_component/, 'ee');
+ } else {
+ resource.request = path.join(
+ ROOT_PATH,
+ 'app/assets/javascripts/vue_shared/components/empty_component.js'
+ );
+ }
+ }),
+
// compression can require a lot of compute time and is disabled in CI
IS_PRODUCTION && !NO_COMPRESSION && new CompressionPlugin(),