From 8005b5312c633ce282d204607bca0552b394ee05 Mon Sep 17 00:00:00 2001 From: MaxRobinsonTheGreat Date: Sat, 19 Mar 2022 14:36:10 -0500 Subject: [PATCH] made jquery a formal plugin --- dist/index.html | 1 - webpack.config.js | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dist/index.html b/dist/index.html index d2fe274..9022567 100644 --- a/dist/index.html +++ b/dist/index.html @@ -6,7 +6,6 @@ - diff --git a/webpack.config.js b/webpack.config.js index 62523fd..c0243c9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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", + }) + ] }; \ No newline at end of file