- 后端接口 https://github.com/luoyunchong/lin-cms-dotnetcore
- 管理后台UI https://github.com/luoyunchong/lin-cms-vue
- 前端UIhttps://github.com/luoyunchong/lin-cms-vvlog
-
本项目swagger地址 https://baimocore.cn/swagger/index.html
-
用户端 lin-cms-vvlog https://vvlog.baimocore.cn
- 普通用户:710277267@qq.com
- 密码:123qwe
-
管理员 lin-cms-vue https://cms.baimocore.cn/
- 管理员: admin
- 密码:123qwe
- https://luoyunchong.github.io/vuepress-docs/dotnetcore/lin-cms/
- https://igeekfan.gitee.io/vuepress-docs/dotnetcore/lin-cms/
# clone the project
git clone https://github.com/luoyunchong/lin-cms-vvlog
# install dependency
npm install or yarn (install)
# develop
npm run serve or yarn (run) serve
#upgrade package
yarn upgrade element-ui
yarn upgrade element-ui@2.13.0
- 1.gzip压缩
npm install compression-webpack-plugin -D
修改vue.config.js
const CompressionPlugin = require('compression-webpack-plugin');//引入gzip压缩插
configureWebpack: config => {
const baseConfig = {
name: name,
resolve: {
alias: {
'@': resolve('src')
}
}
}
if (process.env.NODE_ENV === 'production') {
return {
plugins: [
// 压缩代码
new CompressionPlugin({
test: /\.js$|\.html$|.\css/, // 匹配文件名
threshold: 10240, // 对超过10k的数据压缩
deleteOriginalAssets: false // true 不删除源文件 false 删除源文件
})
],
...baseConfig
}
} else {
return { ...baseConfig }
}
}
- 去除console.log与警告
npm install compression-webpack-plugin -D
const TerserPlugin = require('terser-webpack-plugin')
configureWebpack: config => {
const baseConfig = {
name: name,
resolve: {
alias: {
'@': resolve('src')
}
}
}
if (process.env.NODE_ENV === 'production') {
return {
plugins: [
// 压缩代码
new CompressionPlugin({
test: /\.js$|\.html$|.\css/, // 匹配文件名
threshold: 10240, // 对超过10k的数据压缩
deleteOriginalAssets: false // 不删除源文件
}),
// 去除console.log
new TerserPlugin({
terserOptions: {
compress: {
warnings: false,
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log']
}
}
})
],
...baseConfig
}
} else {
return { ...baseConfig }
}
}