@@ -22,8 +22,8 @@ browserify -p tinyify app.js
22
22
## Included
23
23
24
24
- [ 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
27
27
- [ common-shakeify] [ ] - Remove unused exports from modules
28
28
- [ browser-pack-flat] [ ] - Output a "flat" bundle, with all modules in a single scope
29
29
- [ 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
38
38
39
39
### ` env: {} `
40
40
41
- Supply custom environment variables for [ envify] [ ] .
41
+ Supply custom environment variables for [ @ browserify/ envify] [ ] .
42
42
43
43
``` js
44
44
b .plugin (' tinyify' , {
@@ -73,14 +73,14 @@ b.plugin('tinyify', { flat: false })
73
73
If you need further customisation, I recommend installing the tools separately instead:
74
74
75
75
``` 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
77
77
browserify entry.js \
78
78
-g unassertify \
79
79
-g @browserify/envify \
80
- -g uglifyify \
80
+ -g @browserify/ uglifyify \
81
81
-p common-shakeify \
82
82
-p browser-pack-flat/plugin \
83
- | uglifyjs -cm \
83
+ | terser -cm \
84
84
> output.js
85
85
```
86
86
@@ -90,7 +90,7 @@ Or with the Node API:
90
90
browserify (' entry.js' )
91
91
.transform (' unassertify' , { global: true })
92
92
.transform (' @browserify/envify' , { global: true })
93
- .transform (' uglifyify' , { global: true })
93
+ .transform (' @browserify/ uglifyify' , { global: true })
94
94
.plugin (' common-shakeify' )
95
95
.plugin (' browser-pack-flat/plugin' )
96
96
.bundle ()
@@ -105,8 +105,8 @@ Alternatively you can fork this repo and publish it on npm under a scope with yo
105
105
[ Apache-2.0] ( ./LICENSE.md )
106
106
107
107
[ 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
110
110
[ common-shakeify ] : https://github.com/browserify/common-shakeify
111
111
[ browser-pack-flat ] : https://github.com/goto-bus-stop/browser-pack-flat
112
112
[ bundle-collapser ] : https://github.com/substack/bundle-collapser
0 commit comments