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

1
dist/index.html vendored
View File

@@ -6,7 +6,6 @@
<link rel="icon" href="./img/icon.png">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
</head>

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",
})
]
};