Remove bundle-collapser browserify recommendation (#11051)
* Move bundle-collapser browserify plugin recommendation to a note. * Remove bundle-collapser note entirely
Ricky Reusser committed
Oct 2, 2017 at 16:17 UTC
fb7bab6c272bdc2aff05c68caba1b3edbe93d8c8
1 file changed
+2
-4
docs/docs/optimizing-performance.md
+2
-4
@@ -74,17 +74,16 @@ For the most efficient Browserify production build, install a few plugins:
74
75
```
76
# If you use npm
77
-npm install --save-dev bundle-collapser envify uglify-js uglifyify
77
+npm install --save-dev envify uglify-js uglifyify
78
79
# If you use Yarn
80
-yarn add --dev bundle-collapser envify uglify-js uglifyify
80
+yarn add --dev envify uglify-js uglifyify
81
```
82
83
To create a production build, make sure that you add these transforms **(the order matters)**:
84
85
* The [`envify`](https://github.com/hughsk/envify) transform ensures the right build environment is set. Make it global (`-g`).
86
* The [`uglifyify`](https://github.com/hughsk/uglifyify) transform removes development imports. Make it global too (`-g`).
87
-* The [`bundle-collapser`](https://github.com/substack/bundle-collapser) plugin replaces long module IDs with numbers.
87
* Finally, the resulting bundle is piped to [`uglify-js`](https://github.com/mishoo/UglifyJS2) for mangling ([read why](https://github.com/hughsk/uglifyify#motivationusage)).
88
89
For example:
@@ -93,7 +92,6 @@ For example:
92
browserify ./index.js \
93
-g [ envify --NODE_ENV production ] \
94
-g uglifyify \
96
- -p bundle-collapser/plugin \
95
| uglifyjs --compress --mangle > ./bundle.js
96
```
97