diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-03-01 17:02:01 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-03-03 16:47:38 -0600 |
commit | 7371f6cd8c168df41e4197f80f53f3c04185dee7 (patch) | |
tree | 5eaf634bd30bf984df0611470bc4e268f2ae9b7c /config/webpack.config.js | |
parent | cb6c036d8942ab24048b9ecebcc6c3fa408c9a3e (diff) | |
download | gitlab-ce-7371f6cd8c168df41e4197f80f53f3c04185dee7.tar.gz |
refactor common bundle to ES module syntax and move global exports to application.js
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index c2e0e86fb78..a76daa2ba95 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -87,6 +87,12 @@ var config = { // prevent pikaday from including moment.js new webpack.IgnorePlugin(/moment/, /pikaday/), + // fix legacy jQuery plugins which depend on globals + new webpack.ProvidePlugin({ + $: 'jquery', + jQuery: 'jquery', + }), + // use deterministic module ids in all environments IS_PRODUCTION ? new webpack.HashedModuleIdsPlugin() : |