From 52c038b4b194715be9c37a4a2a701a7152c0765f Mon Sep 17 00:00:00 2001 From: biodiscus Date: Tue, 19 Sep 2023 14:47:17 +0200 Subject: [PATCH] [BUGFIX] Remove Webpack5 deprecation warning --- Build/webpack.config.babel.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Build/webpack.config.babel.js b/Build/webpack.config.babel.js index 897ad38..76924ed 100644 --- a/Build/webpack.config.babel.js +++ b/Build/webpack.config.babel.js @@ -1,6 +1,6 @@ import path from 'path'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; -import FixStyleOnlyEntriesPlugin from "webpack-fix-style-only-entries"; +import RemoveEmptyScripts from 'webpack-remove-empty-scripts'; module.exports = { mode: process.env.NODE_ENV, @@ -11,7 +11,7 @@ module.exports = { path: path.resolve(__dirname, './../Resources/Public'), }, plugins: [ - new FixStyleOnlyEntriesPlugin(), + new RemoveEmptyScripts(), new MiniCssExtractPlugin({ filename: './Css/styles.css' }) diff --git a/package.json b/package.json index 09e97c6..29e1be9 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "sass-loader": "^13.2", "webpack": "^5.79", "webpack-cli": "^5.0", - "webpack-fix-style-only-entries": "^0.6.1" + "webpack-remove-empty-scripts": "^1.0.4" }, "babel": { "presets": [