diff options
author | Phil Hughes <me@iamphill.com> | 2019-02-28 10:55:13 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-02-28 10:55:13 +0000 |
commit | 573dd592b0eebdec8c75506d5a4ebbb66c9a1ab4 (patch) | |
tree | 975221cd9d3343aa5dcc6588932e1b2990f1ae97 /config/webpack.config.js | |
parent | f27536950fcc53bd4e4a74e323bcc88eb2ecb3a2 (diff) | |
download | gitlab-ce-573dd592b0eebdec8c75506d5a4ebbb66c9a1ab4.tar.gz |
CE port of noteable-discussion-ee-differences
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 11 |
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(), |