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

4403
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

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

View File

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