Skip to content

refactor: optimize webpack configuration#1022

Merged
JuanPabloDiaz merged 1 commit intotech-conferences:mainfrom
JuanPabloDiaz:feat/webpack-optimizations
Jul 9, 2025
Merged

refactor: optimize webpack configuration#1022
JuanPabloDiaz merged 1 commit intotech-conferences:mainfrom
JuanPabloDiaz:feat/webpack-optimizations

Conversation

@JuanPabloDiaz
Copy link
Contributor

@JuanPabloDiaz JuanPabloDiaz commented Jul 8, 2025

This PR focuses on improving the build process by optimizing webpack configuration settings.

  • Remove console/debugger dropping in Terser plugin for better debugging
  • Disable parallel processing in CssMinimizerPlugin to prevent build issues
  • Remove split chunks and runtime chunk settings to streamline builds
  • Add namedExport: false to CSS module configurations for consistency
  • Remove image optimization generator config to simplify asset handling

breaking down #1021


This pull request modifies the Webpack configuration to simplify the build process and improve compatibility. Key changes include removing unused optimization settings, updating source map exclusions, and refining CSS module configurations.

Build Process Simplifications:

  • Removed drop_console, drop_debugger, and pure_funcs options from the terser plugin configuration to simplify JavaScript minimization.
  • Removed parallel processing and custom minimizer options from the CssMinimizerPlugin configuration.
  • Removed splitChunks and runtimeChunk settings to streamline chunk splitting and runtime behavior.

Compatibility Improvements:

  • Added react-datepicker to the source-map-loader exclusion list to address compatibility issues with sourcemaps.

CSS Module Refinements:

  • Disabled namedExport in CSS module configurations for both standard CSS and Sass loaders to align with module usage conventions. [1] [2]

- Remove console/debugger dropping in Terser plugin for better debugging
- Disable parallel processing in CssMinimizerPlugin to prevent build issues
- Remove split chunks and runtime chunk settings to streamline builds
- Add namedExport: false to CSS module configurations for consistency
- Remove image optimization generator config to simplify asset handling
@JuanPabloDiaz JuanPabloDiaz merged commit 9089f30 into tech-conferences:main Jul 9, 2025
4 checks passed
@JuanPabloDiaz JuanPabloDiaz deleted the feat/webpack-optimizations branch July 9, 2025 00:58
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.

2 participants