118 Star 1.1K Fork 405

smallwei/avue-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 768 Bytes
一键复制 编辑 原始数据 按行查看 历史
smallwei 提交于 3年前 . feat:lib config
// 基础路径 注意发布之前要先修改这里
// const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
module.exports = {
publicPath: process.env.VUE_APP_BASE_URL,
lintOnSave: true,
productionSourceMap: false,
// configureWebpack: config => {
// if (process.env.NODE_ENV === 'production') {
// return {
// plugins: [
// new BundleAnalyzerPlugin()
// ]
// }
// }
// },
chainWebpack: (config) => {
const entry = config.entry('app')
entry
.add('babel-polyfill')
.end()
entry
.add('classlist-polyfill')
.end()
entry
.add('@/mock')
.end()
},
css: {
extract: { ignoreOrder: true }
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/smallweigit/avue-cli.git
git@gitee.com:smallweigit/avue-cli.git
smallweigit
avue-cli
avue-cli
2.x

搜索帮助