made jquery a formal plugin

This commit is contained in:
MaxRobinsonTheGreat
2022-03-19 14:36:10 -05:00
parent 0da27abd37
commit 8005b5312c
2 changed files with 6 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
const path = require('path');
const webpack = require("webpack");
module.exports = {
entry: './src/index.js',
@@ -6,7 +7,9 @@ module.exports = {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist/js/'),
},
externals: {
jquery: 'jQuery'
}
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
})
]
};