mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-16 19:09:05 +08:00
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:
@@ -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.');
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user