daiyu/vue.config.js

19 lines
455 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module.exports = {
publicPath: './',
assetsDir: 'public'
/* devServer: {
port: 8080, // 端口号如果端口号被占用会自动加1
host: '0.0.0.0', // 主机名, 127.0.0.1 真机 0.0.0.0
https: false, //协议
open: false, //启动服务时自动打开浏览器访问
disableHostCheck: true,
proxy: {
'/api': {
target: "http://localhost:8080",
pathRewrite: {
"^/api": "/dyp-vue/static"
}
}
}
} */
}