const path = require('path')
module.exports = {
publicPath: publicPath: process.env.NODE_ENV === 'production'? '/production-sub-path/': './'
outputDir: 'zjjc', //输出文件目录
assetsDir: 'assets', //放置生成的静态资源
indexPath: 'indx.html', //指定生成的 index.html 的输出路径 (相对于 outputDir)
lintOnSave: false, //eslint-loader 是否在保存的时候检查 安装@vue/cli-plugin-eslint有效
runtimeCompiler: true, //是否使用包含运行时编译器的 Vue 构建版本。设置true后你就可以在使用template
productionSourceMap: false, // 如果您不需要生产时的源映射,那么将此设置为false可以加速生产构建
devServer: {
https: false,
open: true, //配置自动启动浏览器
host: 'localhost',
port: 8080,
proxy: {
'/zj-server/': {
target:'http://172.6.4.11:8010', //开发环境
changeOrigin: true, //是否开启代理,
},
}
},
configureWebpack: config &#
vue.config.js配置解析
最新推荐文章于 2024-05-27 23:13:20 发布