12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- const path = require('path')
- function resolve(dir) {
- return path.join(__dirname, dir)
- }
- const baseUrl = process.env.VUE_APP_API_BASE_URL
-
- module.exports = {
- publicPath: './',
- outputDir: 'dist',
- assetsDir: 'static',
-
-
- productionSourceMap: false,
- devServer: {
- port: "9000",
- open: true,
- compress: false,
- overlay: {
- warnings: false,
- errors: false
- },
- proxy: {
- '/api': {
- target: baseUrl,
- changeOrigin: true,
- pathRewrite: {
- '^/api': 'http://117.176.120.161:1111'
- }
- },
- '/service':{
-
- target: 'http://221.236.31.30:8085',
- changeOrigin: true,
- pathRewrite: {
- '^/service': '/service'
- }
- },
- }
- },
- css: {
-
- extract: true,
-
-
-
- loaderOptions: {
-
- sass: {
-
-
- }
- },
- requireModuleExtension: true
- },
- configureWebpack: {
-
- },
- chainWebpack:(config) =>{
- config.resolve.alias
- .set('@views',resolve('src/views'))
- }
-
- }
|