const path = require('path')
module.exports = {
publicPath: './',
assetsDir: 'static',
outputDir: 'dist',
devServer: {
host: '0.0.0.0',
port: 8082,
https: false,
proxy: {
'/api': {
target: 'http://np.91xmm.site',
// target: 'http://api.pro-domain.com',/api/proudct/detial
changeOrigin: true,
secure: false,
pathRewrite: {
'^/api': ''
}
}
}
},
// configureWebpack: (config) => {
// Object.assign(config, {
// resolve: {
// alias: {
// '@': path.resolve(__dirname, './src'),
// '@images': path.resolve(__dirname, './src/assets'),
// // api: path.resolve(__dirname, './src/api'),
// '@views': path.resolve(__dirname, './src/views')
// }
// }
// })
// }
}
复制代码
vue打包 config.js配置
const path = require('path')module.exports = {publicPath: './',assetsDir: 'static',outputDir: 'dist',devServer: {host: '0.0.0.0',port: 8082,https: false,proxy: {...
·
转载于:https://juejin.im/post/5cc105b3f265da03b36eeb1d
更多推荐
已为社区贡献1条内容
所有评论(0)