diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-03-29 01:05:02 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-03-29 01:05:02 +0200 |
commit | 5ff62fa68f1c6d9693aeb4c27116b77c43e1a309 (patch) | |
tree | 98755ab99b1920ebfa22fd0e26229560b5a68f4f /webpack.config.d/jquery.js | |
parent | 8a1370e0f661d2c90fd5aed8e868341119a866cd (diff) | |
download | kvision-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.js | 8 |
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' + }] +}) |