1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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': ''
- }
- }
- }
- },
- css: {
-
- extract: true,
-
-
-
- loaderOptions: {
-
- sass: {
-
-
- }
- },
- requireModuleExtension: true
- },
- configureWebpack: {
-
- },
- chainWebpack:(config) =>{
- config.resolve.alias
- .set('@views',resolve('src/views'))
- }
-
- }
|