closes #19 - production needs npm run build

This commit is contained in:
Adam Pearce
2018-01-01 20:41:02 -05:00
committed by GitHub
parent b2dfbc752d
commit 5e34512b1d

View File

@@ -61,7 +61,7 @@ Sapper uses webpack to provide code-splitting, dynamic imports and hot module re
## Production mode and deployment
To start a production version of your app, run `npm start`. This will disable hot module replacement, and activate the appropriate webpack plugins.
To start a production version of your app, run `npm run build && npm start`. This will disable hot module replacement, and activate the appropriate webpack plugins.
You can deploy your application to any environment that supports Node 8 or above. As an example, to deploy to [Now](https://zeit.co/now), run these commands: