Upgrade front-end dependencies

This commit is contained in:
NI
2021-12-12 20:31:18 +08:00
parent ad35cd47a9
commit 6cd86fda77
3 changed files with 1612 additions and 2884 deletions

4407
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,23 +5,23 @@
"main": "", "main": "",
"devDependencies": { "devDependencies": {
"@babel/core": "^7.16.0", "@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.0", "@babel/eslint-parser": "^7.16.3",
"@babel/plugin-transform-runtime": "^7.16.0", "@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "^7.16.0", "@babel/preset-env": "^7.16.4",
"@babel/register": "^7.16.0", "@babel/register": "^7.16.0",
"@babel/runtime": "^7.16.0", "@babel/runtime": "^7.16.3",
"babel-loader": "^8.2.3", "babel-loader": "^8.2.3",
"buffer": "^6.0.3", "buffer": "^6.0.3",
"clean-webpack-plugin": "^4.0.0", "clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^9.0.1", "copy-webpack-plugin": "^10.1.0",
"css-loader": "^6.5.1", "css-loader": "^6.5.1",
"css-minimizer-webpack-plugin": "^3.1.1", "css-minimizer-webpack-plugin": "^3.2.0",
"cwebp-bin": "^7.0.0", "cwebp-bin": "^7.0.1",
"eslint": "^8.2.0", "eslint": "^8.4.1",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0", "eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3", "eslint-plugin-vue": "^8.2.0",
"eslint-webpack-plugin": "^3.1.0", "eslint-webpack-plugin": "^3.1.1",
"favicons": "^6.2.2", "favicons": "^6.2.2",
"favicons-webpack-plugin": "^5.0.2", "favicons-webpack-plugin": "^5.0.2",
"fontfaceobserver": "^2.1.0", "fontfaceobserver": "^2.1.0",
@@ -29,23 +29,24 @@
"html-loader": "^3.0.1", "html-loader": "^3.0.1",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"iconv-lite": "^0.6.3", "iconv-lite": "^0.6.3",
"image-minimizer-webpack-plugin": "^2.2.0", "image-minimizer-webpack-plugin": "^3.0.1",
"imagemin": "^8.0.1",
"imagemin-gifsicle": "^7.0.0", "imagemin-gifsicle": "^7.0.0",
"imagemin-mozjpeg": "^9.0.0", "imagemin-mozjpeg": "^9.0.0",
"imagemin-pngquant": "^9.0.2", "imagemin-pngquant": "^9.0.2",
"imagemin-svgo": "^10.0.0", "imagemin-svgo": "^10.0.0",
"imagemin-webp": "^6.0.0", "imagemin-webp": "^6.0.0",
"mini-css-extract-plugin": "^2.4.4", "mini-css-extract-plugin": "^2.4.5",
"mocha": "^9.1.3", "mocha": "^9.1.3",
"normalize.css": "^8.0.1", "normalize.css": "^8.0.1",
"prettier": "^2.4.1", "prettier": "^2.5.1",
"roboto-fontface": "^0.10.0", "roboto-fontface": "^0.10.0",
"style-loader": "^3.3.1", "style-loader": "^3.3.1",
"terser-webpack-plugin": "^5.2.4", "terser-webpack-plugin": "^5.2.5",
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-loader": "^15.9.8", "vue-loader": "^15.9.8",
"vue-template-compiler": "^2.6.14", "vue-template-compiler": "^2.6.14",
"webpack": "^5.62.1", "webpack": "^5.65.0",
"webpack-cli": "^4.9.1", "webpack-cli": "^4.9.1",
"xterm": "^4.15.0", "xterm": "^4.15.0",
"xterm-addon-fit": "^0.5.0", "xterm-addon-fit": "^0.5.0",

View File

@@ -217,12 +217,11 @@ module.exports = {
? false ? false
: { : {
chunks: "all", chunks: "all",
minSize: 56000, minSize: 20000,
maxSize: 110000, maxSize: 90000,
minRemainingSize: 0, minRemainingSize: 0,
minChunks: 1, minChunks: 1,
maxAsyncRequests: 8, enforceSizeThreshold: 50000,
maxInitialRequests: 8,
name(module, chunks, cacheGroupKey) { name(module, chunks, cacheGroupKey) {
const moduleFileName = module const moduleFileName = module
.identifier() .identifier()
@@ -440,36 +439,37 @@ module.exports = {
if (!inDevMode) { if (!inDevMode) {
plugins.push( plugins.push(
new ImageMinimizerPlugin({ new ImageMinimizerPlugin({
maxConcurrency: os.cpus().length, concurrency: os.cpus().length,
minimizerOptions: { minimizer: {
plugins: [ implementation: ImageMinimizerPlugin.imageminMinify,
[ options: {
"webp", plugins: [
{ "imagemin-gifsicle",
"imagemin-mozjpeg",
"imagemin-pngquant",
"imagemin-svgo",
],
encodeOptions: {
webp: {
quality: 50, quality: 50,
method: 6, method: 6,
lossless: false, lossless: false,
metadata: "none", metadata: "none",
}, },
], gifsicle: {
["gifsicle", { interlaced: true }], interlaced: true,
["mozjpeg", { progressive: true }], },
["pngquant", { quality: [0.02, 0.2] }], mozjpeg: {
//[ progressive: true,
//"svgo", },
//{ pngquant: {
//multipass: true, quality: [0.02, 0.2],
//datauri: "enc", },
//indent: 0, svgo: {
//plugins: [ plugins: ["preset-default"],
//{ },
//sortAttrs: true, },
//inlineStyle: true, },
//},
//],
//},
//],
],
}, },
}) })
); );