1 Star 0 Fork 0

神我何往 / vue_1

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vue.config.js 884 Bytes
一键复制 编辑 原始数据 按行查看 历史
liuxujian159258 提交于 2021-07-19 20:18 . Initial commit
module.exports = {
devServer: {
disableHostCheck: true
},
chainWebpack: config => {
// 发布模式
config.when(process.env.NODE_ENV === 'production', config => {
config.entry('app').clear().add('./src/main-prod.js')
config.set('externals', {
vue: 'Vue',
axios: 'axios',
lodash: '_',
echarts: 'echarts',
nprogress: 'NProgress',
'vue-quill-editor': 'VueQuillEditor',
papaparse: 'Papa'
})
})
// 开发模式
config.when(process.env.NODE_ENV === 'development', config => {
config.entry('app').clear().add('./src/main-dev.js')
config.set('externals', {
vue: 'Vue',
axios: 'axios',
lodash: '_',
echarts: 'echarts',
nprogress: 'NProgress',
'vue-quill-editor': 'VueQuillEditor',
papaparse: 'Papa'
})
})
}
}
1
https://gitee.com/where_am_i_going/vue_1.git
git@gitee.com:where_am_i_going/vue_1.git
where_am_i_going
vue_1
vue_1
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891