1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,29 @@ |
1 |
+const merge = require('webpack-merge'); |
|
2 |
+const common = require('./webpack.config.js'); |
|
3 |
+ |
|
4 |
+module.exports = merge(common, { |
|
5 |
+ |
|
6 |
+ devtool: 'eval-source-map', |
|
7 |
+ |
|
8 |
+ devServer: { |
|
9 |
+ hot: true, |
|
10 |
+ inline: true, |
|
11 |
+ proxy: { |
|
12 |
+ '/api': { |
|
13 |
+ target: 'http://localhost:5000' |
|
14 |
+ } |
|
15 |
+ }, |
|
16 |
+ historyApiFallback: true, |
|
17 |
+ port: 8881, |
|
18 |
+ publicPath: '/', |
|
19 |
+ host: '0.0.0.0', |
|
20 |
+ overlay: { |
|
21 |
+ warnings: true, |
|
22 |
+ errors: true |
|
23 |
+ }, |
|
24 |
+ watchContentBase: true, |
|
25 |
+ watchOptions: { |
|
26 |
+ poll: true |
|
27 |
+ } |
|
28 |
+ } |
|
29 |
+}) |