Skip to content
This repository was archived by the owner on Apr 21, 2023. It is now read-only.

Commit ab0924f

Browse files
committed
optimize-css-assets-webpack-plugin is deprecated
1 parent 73e9f37 commit ab0924f

File tree

3 files changed

+262
-631
lines changed

3 files changed

+262
-631
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"bugs": "https://github.com/Rudloff/openvegemap/issues",
77
"dependencies": {
88
"css-loader": "^6.6.0",
9+
"css-minimizer-webpack-plugin": "^3.4.1",
910
"days": "^1.1.1",
1011
"drmonty-leaflet-awesome-markers": "~2.0.2",
1112
"extract-domain": "^2.4.0",
@@ -20,7 +21,6 @@
2021
"leaflet-plugins": "^3.3.1",
2122
"mini-css-extract-plugin": "^2.5.3",
2223
"onsenui": "^2.11.1",
23-
"optimize-css-assets-webpack-plugin": "^5.0.4",
2424
"simple-opening-hours": "^0.1.1",
2525
"string.prototype.padstart": "~3.0.0",
2626
"style-loader": "~0.23.1",

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const HtmlWebpackPlugin = require('html-webpack-plugin');
2-
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
2+
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
33
const FontminPlugin = require('fontmin-webpack');
44

55
/** @var {any} MiniCssExtractPlugin*/
@@ -72,7 +72,7 @@ module.exports = {
7272
chunks: ['test']
7373
}),
7474
new MiniCssExtractPlugin(),
75-
new OptimizeCssAssetsPlugin(),
75+
new CssMinimizerPlugin(),
7676
new FontminPlugin({
7777
autodetect: false,
7878
// Taken from https://fontawesome.com/cheatsheet.

0 commit comments

Comments
 (0)