README.md in sewing_kit-0.29.1 vs README.md in sewing_kit-0.29.2

- old
+ new

@@ -97,5 +97,14 @@ * Use `sewing_kit_script_tag`/`sewing_kit_link_tag` helpers to link erb/js ([example](https://github.com/Shopify/rails_sewing_kit_example/blob/master/app/views/layouts/application.html.erb#L8)) ## FAQ ### How can I fix production builds that are failing due to missing devDependencies? By moving everything into `package.json#dependencies`. This is necessary because Rails 5.2 prunes `devDependencies` during asset compilation. + +### 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 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.