aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.d
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.d')
-rw-r--r--webpack.config.d/jquery.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/webpack.config.d/jquery.js b/webpack.config.d/jquery.js
index 40522595..8c942e79 100644
--- a/webpack.config.d/jquery.js
+++ b/webpack.config.d/jquery.js
@@ -2,3 +2,11 @@ config.plugins.push(new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
}));
+
+config.module.rules.push({
+ test: require.resolve('jquery'),
+ use: [{
+ loader: 'expose-loader',
+ options: 'jQuery'
+ }]
+})