10 Star 0 Fork 0

雪村/shoubiao_vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 637 Bytes
一键复制 编辑 原始数据 按行查看 历史
tpper 提交于 2024-06-20 16:53 . 2
const CompressionWebpackPlugin = require('compression-webpack-plugin');
module.exports = {
productionSourceMap: false,
transpileDependencies: ['element-ui', 'ele-admin', 'vue-i18n'],
chainWebpack: (config) => {
config.plugins.delete('prefetch');
if (process.env.NODE_ENV !== 'development') {
// 对超过10kb的文件gzip压缩
config.plugin('compressionPlugin').use(new CompressionWebpackPlugin({
test: /\.(js|css|html)$/,
threshold: 10240
}));
}
},
css: {
loaderOptions: {
sass: {
sassOptions: {
outputStyle: 'expanded'
}
}
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sunhappy0318/shoubiao_vue.git
git@gitee.com:sunhappy0318/shoubiao_vue.git
sunhappy0318
shoubiao_vue
shoubiao_vue
master

搜索帮助