Skip to content

Commit

Permalink
[docs] Fix example code to accept production mode rendering (#12080)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenkelor authored and oliviertassinari committed Jul 7, 2018
1 parent d62f059 commit 3adacc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"webpack-cli": "latest"
},
"scripts": {
"start": "webpack -w --mode=development & nodemon --exec yarn babel-node -- server.js"
"start": "webpack -w & nodemon --exec yarn babel-node -- server.js"
}
}
1 change: 1 addition & 0 deletions examples/ssr/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');

module.exports = {
entry: './client.js',
mode: process.env.NODE_ENV || 'development',
output: {
path: path.resolve(__dirname, 'build'),
filename: 'bundle.js',
Expand Down

0 comments on commit 3adacc8

Please sign in to comment.