-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huge bundle size #19
Comments
I built a tool to help you analyze webpack bundles for size regressions, and report them directly to GitHub PRs. It's free for open source, so it might be worth checking out and helpful in this scenario. |
This can be fixed with a /**
* Implement Gatsby's Node APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/node-apis/
*/
// You can delete this file if you're not using it
const webpack = require('webpack')
exports.onCreateWebpackConfig = ({ actions: { setWebpackConfig } }) => {
setWebpackConfig({
plugins: [
new webpack.ContextReplacementPlugin(/react-intl[/\\]locale-data$/, /de|en/)
]
})
} |
@BowlingX Thanks! @buz-zard This issue should be fixed on the next release. |
Hi, I tried to launch your
gatsby-starter-default-intl
demo with addedgatsby-plugin-webpack-bundle-analyzer
. Despite onlylanguages: ['en', 'ko', 'de'],
being enabled, all of the locales are bundled with the app (this adds quite a significant amount of extra bundle size):The text was updated successfully, but these errors were encountered: