diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-03-13 22:54:52 +0100 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-03-13 22:54:52 +0100 |
commit | 2ea8ebfad5c22d53aad2df1228d97a1f53c15947 (patch) | |
tree | d1bcf543eac8c01879eb934a679cdaf49d24cd28 /config/webpack.config.js | |
parent | 0c6e4b4c728c32923f1090eaf9927d84d7e78e36 (diff) | |
download | gitlab-ce-2ea8ebfad5c22d53aad2df1228d97a1f53c15947.tar.gz |
Move EE-specifics of Karma test bundle behind flag
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 55122e341c3..20b3f4c0264 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -324,6 +324,10 @@ module.exports = { reportFilename: path.join(ROOT_PATH, 'webpack-report/index.html'), statsFilename: path.join(ROOT_PATH, 'webpack-report/stats.json'), }), + + new webpack.DefinePlugin({ + 'process.env.EE': JSON.stringify(IS_EE), + }), ].filter(Boolean), devServer: { |