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
| module.exports = {
| publicPath: './',
| outputDir: 'dist_designer',
| lintOnSave: false,
| devServer: {
| host: '0.0.0.0',
| disableHostCheck: true,
| port: 8009,
| //public: require('os').networkInterfaces()[Object.keys(require('os').networkInterfaces())[0]][1].address + ':' + 8009,// 设置访问ip端
| open: true,
| overlay: {
| warnings: false,
| errors: true,
| },
| proxy: {
| '/design/': {
| target: 'http://localhost:6882',
| ws: false,
| changeOrigin: true,
| pathRewrite: {
| '/design': '',
| },
| },
| '/file': {
| target: 'http://localhost:6882/',
| ws: false,
| changeOrigin: true,
| },
| },
| }
| };
|
|