You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
572 B
JavaScript
22 lines
572 B
JavaScript
|
|
module.exports = {
|
|
// baseUrl: '/',
|
|
outputDir: 'dist', // 打包的目录
|
|
lintOnSave: false, // 在保存时校验格式
|
|
productionSourceMap: false, // 生产环境是否生成 SourceMap
|
|
devServer: {
|
|
open: true, // 启动服务后是否打开浏览器
|
|
// host: '0.0.0.0',
|
|
// port: 8080, // 服务端口
|
|
https: false,
|
|
hotOnly: false,
|
|
proxy: null, // 设置代理
|
|
before: app => {}
|
|
},
|
|
//兼容IE 11
|
|
chainWebpack: config => {
|
|
config.entry.app = ['babel-polyfill', './src/main.js'];
|
|
},
|
|
}
|
|
|