Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4bc4434

Browse files
gishjeremenichelli
authored andcommitted
fix(guide): remove redundant hint (#2188)
fix(guide): remove redundant hint (#2188)
1 parent 8bf1fe8 commit 4bc4434

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/content/guides/tree-shaking.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ contributors:
99
- MijaelWatts
1010
- dmitriid
1111
- probablyup
12+
- gish
1213
related:
1314
- title: "webpack 4 beta — try it today!"
1415
url: https://medium.com/webpack/webpack-4-beta-try-it-today-6b1d27d7d7e2#9a67
@@ -172,8 +173,6 @@ module.exports = {
172173
};
173174
```
174175
175-
T> Note that the `--optimize-minimize` flag can be used to insert the `UglifyJSPlugin` as well.
176-
177176
With that squared away, we can run another `npm run build` and see if anything has changed.
178177
179178
Notice anything different about `dist/bundle.js`? Clearly the whole bundle is now minified and mangled, but, if you look carefully, you won't see the `square` function included but will see a mangled version of the `cube` function (`function r(e){return e*e*e}n.a=r`). With minification and tree shaking our bundle is now a few bytes smaller! While that may not seem like much in this contrived example, tree shaking can yield a significant decrease in bundle size when working on larger applications with complex dependency trees.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /