Skip to content

chore: Update webpack and its related dependencies #167

Open
KapilSachdev wants to merge 10 commits into
apache:gh-pagesfrom
KapilSachdev:upgrade/webpack
Open

chore: Update webpack and its related dependencies #167
KapilSachdev wants to merge 10 commits into
apache:gh-pagesfrom
KapilSachdev:upgrade/webpack

Conversation

@KapilSachdev

Copy link
Copy Markdown
  • Migrate to asset modules removing url-loader and file-loader
  • Use asset modules for svg loading
  • Replace IgnorePlugin with resolve for removing fs
  • Migrate to new library object syntax
  • Add mode option to both configs
  • Use --config-node-env in commands (script) to set both process.env.NODE_ENV and mode
  • Replace join with resolve for consistency and better path handling
  • Some prettier formatting changes
  • Keep bundle analyzer report static

- Migrate to resolve fs instead of IgnorePlugin
- Migrate to library object syntax
- Add clean option to output
- Add mode option to both configs
-  using --config-node-env will set both process.env.NODE_ENV and mode
- Replace join with resolve for consistency and better path handling
- Some prettier formatting changes
- Keep bundle analyzer report static
- Use asset modules for svg handling
- No need for asset modules for font files, as there are no font files in the project
- Use asset module for images in webpack config
- Cleaning build assets in a multi-config setup have known issues
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