diff options
Diffstat (limited to 'webpack.config.d/jquery.js')
-rw-r--r-- | webpack.config.d/jquery.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/webpack.config.d/jquery.js b/webpack.config.d/jquery.js index bf5a1a20..e6c6b219 100644 --- a/webpack.config.d/jquery.js +++ b/webpack.config.d/jquery.js @@ -1,5 +1,9 @@ -config.plugins.push(new webpack.ProvidePlugin({ - $: "jquery", - jQuery: "jquery", - "window.jQuery": "jquery" -})); +;(function() { + const webpack = require('webpack') + + config.plugins.push(new webpack.ProvidePlugin({ + $: "jquery", + jQuery: "jquery", + "window.jQuery": "jquery" + })); +})(); |