Skip to content

Commit 773f830

Browse files
fix: 修改了package.json文件
1 parent 301a0d2 commit 773f830

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

blogvue/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"babel-plugin-import": "^1.13.0",
1414
"core-js": "^3.6.4",
1515
"css-loader": "^3.5.3",
16-
"fibers": "^5.0.0",
1716
"highlight.js": "^10.0.3",
1817
"imagemin-webpack-plugin": "^2.4.2",
1918
"js-cookie": "^2.2.1",
@@ -34,14 +33,13 @@
3433
"@vue/cli-service": "~4.3.0",
3534
"@vue/eslint-config-standard": "^5.1.2",
3635
"babel-eslint": "^7.2.3",
37-
"compression-webpack-plugin": "^4.0.0",
3836
"eslint": "^6.7.2",
3937
"eslint-plugin-import": "^2.20.2",
4038
"eslint-plugin-node": "^11.1.0",
4139
"eslint-plugin-promise": "^4.2.1",
4240
"eslint-plugin-standard": "^4.0.0",
4341
"eslint-plugin-vue": "^6.2.2",
44-
"node-sass": "^4.14.0",
42+
"node-sass": "^4.9.0",
4543
"sass-loader": "^8.0.2",
4644
"vue-template-compiler": "^2.6.11",
4745
"webpack-bundle-analyzer": "^3.8.0"

blogvue/vue.config.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
const path = require('path')
22
const BundleAanlyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
3-
const CompressionPlugin = require('compression-webpack-plugin');
4-
const productionGzipExtensions = /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i;
53
const ImageminPlugin = require('imagemin-webpack-plugin').default
64

75
module.exports = {
@@ -19,14 +17,6 @@ module.exports = {
1917
},
2018
plugins: [
2119
new BundleAanlyzerPlugin(),
22-
new CompressionPlugin({
23-
filename: '[path].gz[query]',
24-
algorithm: 'gzip',
25-
test: productionGzipExtensions,
26-
threshold: 10240,
27-
minRatio: 0.8,
28-
deleteOriginalAssets: true
29-
}),
3020
new ImageminPlugin({
3121
test: /\.(gif|png|jpe?g|svg)$/i,
3222
disable: false, // Disable during development

0 commit comments

Comments
 (0)