Skip to content

Commit

Permalink
Merge pull request #1285 from webdiscus/master
Browse files Browse the repository at this point in the history
Fix the Webpack5 deprecation warning
  • Loading branch information
Jura authored Sep 19, 2023
2 parents 3fca06d + 0738ff9 commit 52a6830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"svgo-loader": "^4.0.0",
"webpack": "5.85.0",
"webpack-cli": "^5.1.4",
"webpack-fix-style-only-entries": "^0.6.1"
"webpack-remove-empty-scripts": "^1.0.4"
},
"dependencies": {
"fitty": "^2.3.6",
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
const RemoveEmptyScripts = require('webpack-remove-empty-scripts');
// const RemovePlugin = require('remove-files-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const webpackEntry = require('./webpack.entries');
Expand Down Expand Up @@ -88,7 +88,7 @@ module.exports = [
],
}),
// remove .js file which is generated from every css file
new FixStyleOnlyEntriesPlugin(),
new RemoveEmptyScripts(),
new MiniCssExtractPlugin({
filename: '[name].min.css',
}),
Expand Down

0 comments on commit 52a6830

Please sign in to comment.