made jquery a formal plugin
This commit is contained in:
@@ -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",
|
||||
})
|
||||
]
|
||||
};
|
||||
Reference in New Issue
Block a user