Skip to content

Commit

Permalink
feat: upgrade node module
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Huang committed Oct 6, 2021
1 parent 619a9c8 commit c6ba38e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
9 changes: 6 additions & 3 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const CopyPlugin = require('copy-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
const TerserJSPlugin = require('terser-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
const webpack = require('webpack');
const {
CleanWebpackPlugin
Expand All @@ -18,7 +18,10 @@ module.exports = {
publicPath: '/'
},
optimization: {
minimizer: [new TerserJSPlugin({})],
minimizer: [
new TerserJSPlugin({}),
new CssMinimizerPlugin()
],
},
module: {
rules: [{
Expand All @@ -45,7 +48,7 @@ module.exports = {
}],
},
plugins: [
new OptimizeCSSAssetsPlugin({}),
new MiniCssExtractPlugin(),
new CleanWebpackPlugin(),
new FixStyleOnlyEntriesPlugin(),
new MiniCssExtractPlugin({
Expand Down
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@
},
"bundleDependencies": false,
"dependencies": {
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^5.1.1",
"css-loader": "^3.4.2",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^9.0.1",
"css-loader": "^6.3.0",
"css-minimizer-webpack-plugin": "^3.1.1",
"fs-extra": "^8.1.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.13.1",
"html-webpack-plugin": "^5.3.2",
"mini-css-extract-plugin": "^2.4.1",
"node-sass": "^6.0.1",
"node-static-alias": "^1.1.2",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"sass-loader": "^8.0.2",
"string-replace-loader": "^2.2.0",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10",
"webpack-fix-style-only-entries": "^0.4.0"
"sass-loader": "^12.1.0",
"string-replace-loader": "^3.0.3",
"webpack": "^5.57.1",
"webpack-cli": "^4.8.0",
"webpack-fix-style-only-entries": "^0.6.1"
},
"deprecated": false,
"description": "1. `npm install https://github.com/miterfrants/swim.git` 2. `node node_modules/swim/auto-script/generate-project-structure.js`",
Expand Down

0 comments on commit c6ba38e

Please sign in to comment.