Skip to content

Commit a025482

Browse files
committed
Add note about --optimize-minimize is not required for tree shaking
closes webpack#1473 ref webpack#1331
1 parent 6e3d072 commit a025482

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/guides/tree-shaking.md

+2
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,5 @@ function(e,t,n){"use strict";function r(e){return e*e*e}t.a=r}
8484
/* ... */
8585
function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);console.log(n.i(r.a)(5))}
8686
```
87+
88+
T> Note, using the `--optimize-minimize` flag is NOT required for tree shaking to occur. Tree shaking will occur when using a production configuration. This can also be configured directly in a `webpack.config.js` file. Read [production build](/guides/production) for an in-depth guide on how to create a production config file.

0 commit comments

Comments
 (0)