118 Star 1.1K Fork 405

smallwei/avue-cli

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
vue.config.js 768 Bytes
Copy Edit Raw Blame History
smallwei authored 3 years ago . 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

Search