This sample shows the result of reducing the bundle size by webpack's Tree Shaking and babel-plugin-lodash.
This sample shows the result of reducing the bundle size by webpack’s Tree Shaking and babel-plugin-lodash.
pattern | command | bundle Size |
---|---|---|
normal | webpack |
403KB |
tree-shaking | webpack --env=tree-shaking |
402KB |
lodash | webpack --env=lodash |
250KB |
tree-shaking + lodash | webpack --env=tree-shaking+lodash |
249KB |
MIT