You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After including lodash-webpack-plugin and babel-plugin-lodash in .babelrc and webpack.config.js with no extra configuration, my build time went down by ~2 seconds and vendor file shrunk from 538 kB to 504 kB
Edit: It was mentioned in #313 that lodash was already being trimmed by using /function in the imports, but I guess these packages do some extra work on top of that.
Edit: When using redux-form I saved 31kb more by using babel-plugin-transform-imports as described here.
I've renamed this issue so I can continue sharing any more optimizations I find :)
The text was updated successfully, but these errors were encountered:
vegeta897
changed the title
Include lodash-webpack-plugin and babel-plugin-lodash for slightly leaner builds
Working collection of bundle-shaving tips
Feb 13, 2018
After including
lodash-webpack-plugin
andbabel-plugin-lodash
in.babelrc
andwebpack.config.js
with no extra configuration, my build time went down by ~2 seconds and vendor file shrunk from 538 kB to 504 kBSmall, but figured it was worth sharing!
Related to #290
Edit: It was mentioned in #313 that lodash was already being trimmed by using
/function
in the imports, but I guess these packages do some extra work on top of that.Edit: When using
redux-form
I saved 31kb more by usingbabel-plugin-transform-imports
as described here.I've renamed this issue so I can continue sharing any more optimizations I find :)
The text was updated successfully, but these errors were encountered: