-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.config.js
48 lines (43 loc) · 1.16 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const path = require('path')
const webpack = require('webpack')
// vue.config.js
const vueConfig = {
configureWebpack: {
// webpack plugins
plugins: [
// Ignore all locale files of moment.js
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
],
},
css: {
// loaderOptions: {
// sass: {
// // @是src的别名
// prependData: `
// @import "@/theme/init.scss";
// `,
// },
// },
},
devServer: {
// development server port 8000
port: 8080,
// If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
proxy: {
'/api': {
target: 'http://ip:8003',
ws: false,
changeOrigin: true,
pathRewrite: {
'^/api': '/',
},
},
},
},
// disable source map in production
productionSourceMap: false,
lintOnSave: undefined,
// babel-loader no-ignore node_modules/*
transpileDependencies: [],
}
module.exports = vueConfig