-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
37 lines (35 loc) · 955 Bytes
/
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
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true
})
module.exports = {
/**
* You will need to set publicPath if you plan to deploy your site under a sub path,
* for example GitHub Pages. If you plan to deploy your site to https://foo.github.io/bar/,
* then publicPath should be set to "/bar/".
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/',
outputDir: 'dist',
assetsDir: 'static',
filenameHashing: true,
// lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: true,
devServer: {
// // 开启https >>>
proxy: {
'/v1': {
target: 'http://new.bmobapp.com/',
ws: false,
changeOrigin: true,
pathRewrite: {
'^/v1': '/v1'
}
}
},
// https: true,
// // 开启https <<<
open: true
}
}