| | |
| | | // webpack-dev-server 相关配置 |
| | | devServer: { |
| | | host: '0.0.0.0', |
| | | // public: '192.168.1.2:8080', // 此处是自己电脑IP地址! |
| | | port: port, |
| | | open: true, |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | // detail: https://cli.vuewww.bendudu.comjs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: `http://47.93.189.255:8080/`, |
| | | // target: `https://10.39.18.174:8080/`, |
| | | // target: `https://192.168.1.7:8080/`, |
| | | target: 'https://www.bendudu.com:8080/', |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |
| | | } |
| | | } |
| | | }, |
| | | https: true, |
| | | disableHostCheck: true |
| | | }, |
| | | css: { |
| | | loaderOptions: { |
| | | sass: { |
| | | sassOptions: { outputStyle: "expanded" } |
| | | sassOptions: { outputStyle: "expanded" }, |
| | | |
| | | } |
| | | } |
| | | }, |