aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.d/jquery.js
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-03-29 01:05:02 +0200
committerRobert Jaros <rjaros@finn.pl>2018-03-29 01:05:02 +0200
commit5ff62fa68f1c6d9693aeb4c27116b77c43e1a309 (patch)
tree98755ab99b1920ebfa22fd0e26229560b5a68f4f /webpack.config.d/jquery.js
parent8a1370e0f661d2c90fd5aed8e868341119a866cd (diff)
downloadkvision-5ff62fa68f1c6d9693aeb4c27116b77c43e1a309.tar.gz
kvision-5ff62fa68f1c6d9693aeb4c27116b77c43e1a309.tar.bz2
kvision-5ff62fa68f1c6d9693aeb4c27116b77c43e1a309.zip
Components for file upload.
Diffstat (limited to 'webpack.config.d/jquery.js')
-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'
+ }]
+})