Skip to content

Commit

Permalink
[BUGFIX] Remove Webpack5 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
webdiscus authored and featdd committed Oct 7, 2023
1 parent c09abef commit 52c038b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Build/webpack.config.babel.js
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -11,7 +11,7 @@ module.exports = {
path: path.resolve(__dirname, './../Resources/Public'),
},
plugins: [
new FixStyleOnlyEntriesPlugin(),
new RemoveEmptyScripts(),
new MiniCssExtractPlugin({
filename: './Css/styles.css'
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 52c038b

Please sign in to comment.