|
@@ -0,0 +1,97 @@
|
|
1
|
+'use strict'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+const path = require('path')
|
|
6
|
+
|
|
7
|
+module.exports = {
|
|
8
|
+ dev: {
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+ assetsSubDirectory: 'static',
|
|
12
|
+ assetsPublicPath: '/',
|
|
13
|
+ proxyTable: {},
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+ host: 'xt.test.sgjyun.com',
|
|
23
|
+
|
|
24
|
+ port: 9528,
|
|
25
|
+ autoOpenBrowser: true,
|
|
26
|
+ errorOverlay: true,
|
|
27
|
+ notifyOnErrors: false,
|
|
28
|
+ poll: false,
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+ useEslint: false,
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+ showEslintErrorsInOverlay: false,
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+ * Source Maps
|
|
41
|
+ */
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+ devtool: '#cheap-source-map',
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+ cacheBusting: true,
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+ cssSourceMap: false,
|
|
57
|
+ },
|
|
58
|
+
|
|
59
|
+ build: {
|
|
60
|
+
|
|
61
|
+ index: path.resolve(__dirname, '../dist/index.html'),
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+ assetsRoot: path.resolve(__dirname, '../dist'),
|
|
65
|
+ assetsSubDirectory: 'static',
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+ * You can set by youself according to actual condition
|
|
69
|
+ * You will need to set this if you plan to deploy your site under a sub path,
|
|
70
|
+ * for example GitHub pages. If you plan to deploy your site to https:
|
|
71
|
+ * then assetsPublicPath should be set to "/bar/".
|
|
72
|
+ * In most cases please use '/' !!!
|
|
73
|
+ */
|
|
74
|
+
|
|
75
|
+ assetsPublicPath: './',
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+ * Source Maps
|
|
79
|
+ */
|
|
80
|
+ productionSourceMap: false,
|
|
81
|
+
|
|
82
|
+ devtool: '#source-map',
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+ productionGzip: false,
|
|
89
|
+ productionGzipExtensions: ['js', 'css'],
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+ bundleAnalyzerReport: process.env.npm_config_report
|
|
96
|
+ }
|
|
97
|
+}
|