123456789101112131415161718192021222324252627282930 |
- const axios_default_ip = process.env.NODE_ENV == 'dev' ? 'http://121.41.102.225:83' : 'http://121.41.102.225:83'
- //http://192.168.0.171:83
- process.env.VUE_APP_BASE_URL = axios_default_ip
- const Timestamp = new Date().getTime();
- module.exports = {
- chainWebpack:config => {
- if (process.env.NODE_ENV === 'prd') {
- config.output.filename('js/[name].' + Timestamp + '.js').end();
- config.output.chunkFilename('js/[name].' + Timestamp + '.js').end();
- }
- },
- publicPath:'./',
- outputDir:'dist',
- assetsDir:'static',
- indexPath:'index.html',
- productionSourceMap:false,
- devServer: {
- proxy: {
- '/proxy': {
- target: axios_default_ip,
- ws: true, // proxy websockets
- changeOrigin: true,
- pathRewrite: {
- '^/proxy': '' // rewrite path
- }
- }
- }
- },
- lintOnSave: false//禁用eslint 便于开发
- }
|