Skip to content
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

fix: Optimized Webpack configuration Update webpack.config.js #5643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdqst
Copy link
Contributor

@mdqst mdqst commented Jan 13, 2025

I’ve made several improvements to the Webpack config to enhance performance and maintainability:

  1. Added resolve.alias to simplify imports and speed up path resolution.
  2. Optimized TerserPlugin with compress and mangle for better code compression and obfuscation.
  3. Enabled filesystem caching to significantly speed up rebuilds.
  4. Excluded node_modules from source-map-loader to reduce warnings and improve build speed.
  5. Removed unused fallback modules to reduce bundle size.
  6. Added splitChunks to improve load times by splitting the bundle into smaller chunks.
  7. Optionally integrated webpack-bundle-analyzer for better bundle size insights.
  8. Improved code readability and added comments for clarity.

Copy link

netlify bot commented Jan 13, 2025

👷 Deploy request for remixproject pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit c09866d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant