Skip to content

Commit 2173092

Browse files
authored
Merge pull request #943 from monte-hayward/patch-1
add devSever summary
2 parents 9fcc1cc + a2ea8af commit 2173092

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

content/configuration/index.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,16 @@ module.exports = {
369369
// lets you precisely control what bundle information gets displayed
370370
371371
[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+
// ...
373382
},
374383
375384
[plugins](plugins): [

0 commit comments

Comments
 (0)