Switch over to recommending pushstate-server

It has a sane default port, gzip, and doesn’t aggressively cache index.html.
Perfect.
This commit is contained in:
Dan Abramov
2016-07-27 16:52:15 +01:00
parent 88363b14a0
commit 9645cbd117
2 changed files with 4 additions and 5 deletions

View File

@@ -43,10 +43,9 @@ webpack(config).run(function(err, stats) {
console.log('You can now serve it with any static server.');
console.log('For example:');
console.log();
console.log(' cd build');
console.log(' npm install -g st');
console.log(' st -p 8000 -i index.html');
console.log(' ' + openCommand + ' http://localhost:8000');
console.log(' npm install -g pushstate-server');
console.log(' pushstate-server build');
console.log(' ' + openCommand + ' http://localhost:9000');
console.log();
}
console.log('The bundle is optimized and ready to be deployed to production.');

View File

@@ -8,7 +8,7 @@ class App extends Component {
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
<h2>Welcome to React!</h2>
</div>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.