@@ -22,8 +22,8 @@ browserify -p tinyify app.js
2222## Included
2323
2424 - [ unassertify] [ ] - Remove ` assert() ` calls
25- - [ envify] [ ] - Replace environment variables—by default, replaces ` NODE_ENV ` with ` "production" `
26- - [ uglifyify] [ ] - Remove dead code from modules
25+ - [ @ browserify/ envify] [ ] - Replace environment variables—by default, replaces ` NODE_ENV ` with ` "production" `
26+ - [ @ browserify/ uglifyify] [ ] - Remove dead code from modules
2727 - [ common-shakeify] [ ] - Remove unused exports from modules
2828 - [ browser-pack-flat] [ ] - Output a "flat" bundle, with all modules in a single scope
2929 - [ bundle-collapser] [ ] - When using the ` --no-flat ` option, bundle-collapser replaces file paths in ` require() ` calls with short module IDs
@@ -38,7 +38,7 @@ Options can be provided on the command line using subarg syntax, or in a separat
3838
3939### ` env: {} `
4040
41- Supply custom environment variables for [ envify] [ ] .
41+ Supply custom environment variables for [ @ browserify/ envify] [ ] .
4242
4343``` js
4444b .plugin (' tinyify' , {
@@ -73,14 +73,14 @@ b.plugin('tinyify', { flat: false })
7373If you need further customisation, I recommend installing the tools separately instead:
7474
7575``` bash
76- npm install --save-dev unassertify @browserify/envify uglifyify common-shakeify browser-pack-flat uglify-js
76+ npm install --save-dev unassertify @browserify/envify @browserify/ uglifyify common-shakeify browser-pack-flat terser
7777browserify entry.js \
7878 -g unassertify \
7979 -g @browserify/envify \
80- -g uglifyify \
80+ -g @browserify/ uglifyify \
8181 -p common-shakeify \
8282 -p browser-pack-flat/plugin \
83- | uglifyjs -cm \
83+ | terser -cm \
8484> output.js
8585```
8686
@@ -90,7 +90,7 @@ Or with the Node API:
9090browserify (' entry.js' )
9191 .transform (' unassertify' , { global: true })
9292 .transform (' @browserify/envify' , { global: true })
93- .transform (' uglifyify' , { global: true })
93+ .transform (' @browserify/ uglifyify' , { global: true })
9494 .plugin (' common-shakeify' )
9595 .plugin (' browser-pack-flat/plugin' )
9696 .bundle ()
@@ -105,8 +105,8 @@ Alternatively you can fork this repo and publish it on npm under a scope with yo
105105[ Apache-2.0] ( ./LICENSE.md )
106106
107107[ unassertify ] : https://github.com/unassert-js/unassertify
108- [ envify ] : https://github.com/browserify/envify
109- [ uglifyify ] : https://github.com/hughsk /uglifyify
108+ [ @browserify/ envify] : https://github.com/browserify/envify
109+ [ @browserify/ uglifyify] : https://github.com/browserify /uglifyify
110110[ common-shakeify ] : https://github.com/browserify/common-shakeify
111111[ browser-pack-flat ] : https://github.com/goto-bus-stop/browser-pack-flat
112112[ bundle-collapser ] : https://github.com/substack/bundle-collapser
0 commit comments