| 1234567891011121314151617181920212223242526272829 |
- const env = require('./src/config/env');
- const env_url = env.env_url;
- const Timestamp = new Date().getTime();
- module.exports = {
- publicPath: './',
- devServer: {
- proxy: {
- '/api': {
- // target:"http://8.136.230.133:8080",//这里设置你要访问的域名(或IP+端口) //测试
- //target:"http://8.140.188.129:8080",//这里设置你要访问的域名(或IP+端口) //线上
- //target:"http://192.168.2.122:8080",//这里设置你要访问的域名(或IP+端口)
- target: env_url,
- changeOrigin: true,
- pathRewrite: {
- '^/api': '/'
- }
- }
- }
- },
- outputDir: process.env.NODE_ENV === "development" ? 'devDist' : 'dist',
- configureWebpack: { // webpack 配置
- output: { // 输出重构 打包编译后的 文件名称 【模块名称.版本号.时间戳】
- filename: `js/app.${Timestamp}.js`,
- chunkFilename: `js/chunk-vendors.${Timestamp}.js`
- },
- },
- };
|