File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,16 @@ module.exports = {
369
369
// lets you precisely control what bundle information gets displayed
370
370
371
371
[devServer](/configuration/dev-server): {
372
- /* TODO */
372
+ proxy: { // proxy URLs to backend development server
373
+ '/api': 'http://localhost:3000'
374
+ },
375
+ contentBase: path.join(__dirname, 'public'), // boolean | string | array, static file location
376
+ compress: true, // enable gzip compression
377
+ historyApiFallback: true, // true for index.html upon 404, object for multiple paths
378
+ hot: true, // hot module replacement. Depends on HotModuleReplacementPlugin
379
+ https: false, // true for self-signed, object for cert authority
380
+ noInfo: true, // only errors & warns on hot reload
381
+ // ...
373
382
},
374
383
375
384
[plugins](plugins): [
You can’t perform that action at this time.
0 commit comments