README.md in sewing_kit-0.95.0 vs README.md in sewing_kit-0.95.1
- old
+ new
@@ -227,14 +227,20 @@
### How can I test a production verison of my changes?
Ideally, by deploying to a `staging` environment. If that is not possible, a production-like local development experience is available via:
```sh
-NODE_ENV=production bundle exec rake assets:precompile
+NODE_ENV=production SK_SIMULATE_PRODUCTION=1 bundle exec rake assets:precompile
NODE_ENV=production SK_SIMULATE_PRODUCTION=1 dev run
```
-Note that code changes will not be automatically recompiled in this state. After verifying production behaviour, run `bundle exec rake assets:clobber` to get back to development mode.
+Note:
+
+- Code changes will not be automatically recompiled in this state
+- `SK_SIMULATE_PRODUCTION` does not make Rails itself run in production mode
+- The most accurate way to gauge performance of the production version of an application is via a `staging` environment
+
+After verifying production behaviour, run `bundle exec rake assets:clobber` to get back to development mode.
### My project is using `sprockets-commoner`, can I use sewing_kit too?
No. sprockets-commoner uses an outdated Babel version, and is no longer compatible with sewing-kit.