-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathvue.config.js
39 lines (36 loc) · 976 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
38
39
'use strict';
const {join} = require('path');
const port = process.env.port || process.env.npm_config_port || 80;
module.exports = {
pages: {
index: 'src/main.js',
},
outputDir: join(__dirname, 'dist'),
filenameHashing: false,
productionSourceMap: false,
publicPath: './',
devServer: {
port,
disableHostCheck: true,
contentBase: [join(__dirname, 'public')],
proxy: {
'/devProxy': {
target: 'http://localhost:8082',
changeOrigin: true,
pathRewrite: {
'/devProxy': '/'
}
}
}
},
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
name: 'citrus',
resolve: {
alias: {
'@': join(__dirname, 'src'),
},
}
},
};