Ai
3 Star 15 Fork 2

陈凯/vue3-form-design

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
陈凯 提交于 2021-12-15 18:56 +08:00 . first commit
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path')
const resolve = dir => {
return path.join(__dirname, dir)
}
module.exports = {
publicPath: '/',
assetsDir: 'static',
productionSourceMap: false,
css: {
extract: false
},
configureWebpack: config => {
config.performance = {
hints: 'warning',
maxEntrypointSize: 50000000,
maxAssetSize: 30000000,
assetFilter: assetFilename => assetFilename.endsWith('.js')
}
config.externals = {
ace: 'ace'
}
},
chainWebpack: config => {
config.module
.rule('svg')
.exclude.add(resolve('src/icons'))
.end()
config.module
.rule('icons')
.test(/\.svg$/)
.include.add(resolve('src/icons'))
.end()
.use('svg-sprite-loader')
.loader('svg-sprite-loader')
.options({
symbolId: 'icon-[name]'
})
.end()
},
devServer: {
disableHostCheck: true,
proxy: {
'/api': {
target: 'http://172.16.20.6:48080',
ws: false,
changeOrigin: true,
pathRewrite: {
'^/api': ''
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenkai12/vue3-form-design.git
git@gitee.com:chenkai12/vue3-form-design.git
chenkai12
vue3-form-design
vue3-form-design
master

搜索帮助