1 Star 0 Fork 0

tmp/avue-form-design

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 908 Bytes
一键复制 编辑 原始数据 按行查看 历史
const webpack = require('webpack')
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
transpileDependencies: ['avue-plugin-ueditor'],
productionSourceMap: false,
configureWebpack: {
output: {
libraryExport: 'default'
}
},
chainWebpack: (config) => {
config.externals({
'vue': 'Vue',
'element-ui': 'ElementUI',
})
config.resolve.alias
.set('@', resolve('packages'))
.set('@components', resolve('packages/components'))
.set('@utils', resolve('packages/utils'))
.set('@mixins', resolve('packages/mixins'))
const output = config.output.store.get('path')
if (output.includes('lib')) config.plugin('optimize')
.use(webpack.optimize.LimitChunkCountPlugin, [{
maxChunks: 1
}])
},
devServer: {
open: true
},
css: {
extract: false
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/uniapp-tmp/avue-form-design.git
git@gitee.com:uniapp-tmp/avue-form-design.git
uniapp-tmp
avue-form-design
avue-form-design
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385