module.exports = {
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
outputDir: "dist",
assetsDir: "static",
indexPath: 'index.html',
devServer: {
overlay: {
warnings: true,
errors: true
},
// assetsDir: './',// static resource directory (js, css, img, fonts) inside these files can be written
// Set the host address
host: 'localhost',
// set the default port
port: 8080,
// set the proxy
proxy: {
'/api': {
// API target address
target: 'http://192.168.124.231:8707/', // domain interface
// If you want to proxy websockets
ws: false,
// Change the origin host header for the goal URL
changeOrigin: true
}
}
}
}