From bfea79556b7ee18f90b37b1beb1b2c8e36b60f5e Mon Sep 17 00:00:00 2001 From: Tim van Dijen <tvdijen@gmail.com> Date: Sun, 20 Mar 2022 12:03:15 +0100 Subject: [PATCH] Drop jQuery --- package.json | 1 - webpack.config.js | 13 ------------- 2 files changed, 14 deletions(-) diff --git a/package.json b/package.json index e37a066e2..6c2ca23d2 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "es5-shim": "^4.6.5", "es6-shim": "^0.35.6", "highlight.js": "^10.7.0", - "jquery": "^3.6.0", "minimum-node-version": "^3.0.0", "purecss": "^2.0.6", "reset-css": "^5.0.1" diff --git a/webpack.config.js b/webpack.config.js index 039613e2d..12a13b08a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -58,24 +58,11 @@ module.exports = environment => { } } ] - }, - { - // expose jquery for use outside webpack bundle - test: require.resolve('jquery'), - loader: "expose-loader", - options: { - exposes: ["$", "jQuery"], - } } ] }, devtool: 'source-map', plugins: [ - // Provides jQuery for other JS bundled with Webpack - new webpack.ProvidePlugin({ - $: 'jquery', - jQuery: 'jquery' - }), new MiniCssExtractPlugin({ filename: localConfig['css_filename'], ignoreOrder: true -- GitLab