mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-26 11:06:33 +08:00
✅feat: Update dependencies
This commit is contained in:
parent
5b5cc31127
commit
b88d4d380e
@ -35,7 +35,6 @@
|
|||||||
"body-parser": "^1.19.0",
|
"body-parser": "^1.19.0",
|
||||||
"chalk": "^4.1.0",
|
"chalk": "^4.1.0",
|
||||||
"chokidar": "^3.4.3",
|
"chokidar": "^3.4.3",
|
||||||
"compression-webpack-plugin": "^7.0.0",
|
|
||||||
"eslint": "^7.15.0",
|
"eslint": "^7.15.0",
|
||||||
"eslint-plugin-prettier": "^3.2.0",
|
"eslint-plugin-prettier": "^3.2.0",
|
||||||
"eslint-plugin-vue": "^7.2.0",
|
"eslint-plugin-vue": "^7.2.0",
|
||||||
|
@ -27,8 +27,6 @@ const FileManagerPlugin = require('filemanager-webpack-plugin')
|
|||||||
const dayjs = require('dayjs')
|
const dayjs = require('dayjs')
|
||||||
const date = dayjs().format('YYYY_M_D')
|
const date = dayjs().format('YYYY_M_D')
|
||||||
const time = dayjs().format('YYYY-M-D HH:mm:ss')
|
const time = dayjs().format('YYYY-M-D HH:mm:ss')
|
||||||
const CompressionWebpackPlugin = require('compression-webpack-plugin')
|
|
||||||
const productionGzipExtensions = ['html', 'js', 'css', 'svg']
|
|
||||||
process.env.VUE_APP_TITLE = title || 'vue-admin-beautiful'
|
process.env.VUE_APP_TITLE = title || 'vue-admin-beautiful'
|
||||||
process.env.VUE_APP_AUTHOR = author || 'chuzhixin'
|
process.env.VUE_APP_AUTHOR = author || 'chuzhixin'
|
||||||
process.env.VUE_APP_UPDATE_TIME = time
|
process.env.VUE_APP_UPDATE_TIME = time
|
||||||
@ -126,20 +124,6 @@ module.exports = {
|
|||||||
.plugin('banner')
|
.plugin('banner')
|
||||||
.use(Webpack.BannerPlugin, [`${webpackBanner}${time}`])
|
.use(Webpack.BannerPlugin, [`${webpackBanner}${time}`])
|
||||||
.end()
|
.end()
|
||||||
config
|
|
||||||
.plugin('compression')
|
|
||||||
.use(CompressionWebpackPlugin, [
|
|
||||||
{
|
|
||||||
filename: '[path][base].gz[query]',
|
|
||||||
algorithm: 'gzip',
|
|
||||||
test: new RegExp(
|
|
||||||
'\\.(' + productionGzipExtensions.join('|') + ')$'
|
|
||||||
),
|
|
||||||
threshold: 8192,
|
|
||||||
minRatio: 0.8,
|
|
||||||
},
|
|
||||||
])
|
|
||||||
.end()
|
|
||||||
config.module
|
config.module
|
||||||
.rule('images')
|
.rule('images')
|
||||||
.use('image-webpack-loader')
|
.use('image-webpack-loader')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user