1 Star 6 Fork 4

Cheerwhy/vue3-elementPlus-theme-change

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
Cheerwhy 提交于 2021-10-28 14:32 +08:00 . 初版可预览
const path = require("path");
const CompressionWebpackPlugin = require("compression-webpack-plugin");
const productionGzipExtensions = /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i;
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = {
publicPath: "/",
assetsDir: "static",
outputDir: "vue3_element_plus_theme_change",
productionSourceMap: false,
devServer: {
port: 3000,
open: true,
overlay: {
warnings: false,
errors: true,
},
},
chainWebpack(config) {
config.plugins.delete("prefetch");
},
configureWebpack: {
resolve: {
alias: {
"@": resolve("src"),
},
},
plugins: [
new CompressionWebpackPlugin({
filename: "[path].gz[query]",
algorithm: "gzip",
test: productionGzipExtensions,
threshold: 10240,
minRatio: 0.8,
}),
],
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cheerwhy/vue3-element-plus-theme-change.git
git@gitee.com:cheerwhy/vue3-element-plus-theme-change.git
cheerwhy
vue3-element-plus-theme-change
vue3-elementPlus-theme-change
master

搜索帮助