From ef2332348306399691e8345e0e447b4e0cf1309a Mon Sep 17 00:00:00 2001 From: Yoshua Wuyts Date: Tue, 24 May 2016 22:11:21 +0900 Subject: [PATCH] docs: recommend browserify transforms --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 2bb5dcc..cc4d5dd 100644 --- a/README.md +++ b/README.md @@ -608,6 +608,18 @@ Consider running some of the following: - [bulkify](https://www.npmjs.com/package/bulkify) - transform inline [bulk-require](https://www.npmjs.com/package/bulk-require) calls into statically resolvable require maps +- [envify](https://github.com/hughsk/envify) - replace `process.env` values + with plain strings + +Generally for production builds you'll want to run: +```sh +$ NODE_ENV=production browserify \ + -t envify \ + -t unassertify \ + -t es2020 \ + -t uglifyify \ + | uglifyjs +``` ## Hey, doesn't this look a lot like Elm? Yup, it's greatly inspired by the `elm` architecture. But contrary to `elm`,