| | |
| | | 'use strict' |
| | | const path = require('path') |
| | | const defaultSettings = require('./src/settings.js') |
| | | |
| | | function resolve(dir) { |
| | | return path.join(__dirname, dir) |
| | | } |
| | | |
| | | const name = defaultSettings.title || 'RuoYi-Vue-Plus后台管理系统' // 标题 |
| | | const name = process.env.VUE_APP_TITLE || 'RuoYi-Vue-Plus后台管理系统' // 网页标题 |
| | | |
| | | const port = process.env.port || process.env.npm_config_port || 80 // 端口 |
| | | |
| | |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: `http://localhost:8081`, |
| | | target: `http://localhost:8080`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |
| | |
| | | config.optimization.runtimeChunk('single'), |
| | | { |
| | | from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件 |
| | | to: './', //到根目录下 |
| | | to: './' //到根目录下 |
| | | } |
| | | } |
| | | ) |