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

Upgrade webpack manifest plugin #18052

Merged
merged 4 commits into from
Jul 29, 2021
Merged

Conversation

theodur
Copy link
Contributor

@theodur theodur commented Jul 28, 2021

Description

v2.2.0 of the webpack-manifest-plugin has a bug that causes inaccurate mappings to fonts and images (more context). This PR upgrades the plugin to the latest version 4.0.1.

Original issue(s)

department-of-veterans-affairs/va.gov-team#18317

Testing done

Compared file-manifest.json before and after upgrade for each build type. Confirmed that everything is present in the manifest after the upgrade except for the unwanted .scss and font mappings.

Screenshots

Acceptance criteria

  • file-manifest.json should contain the same data as before the upgrade, except for .scsss mappings to fonts.

Definition of done

  • Events are logged appropriately
  • Documentation has been updated, if applicable
  • A link has been provided to the originating GitHub issue (or connected to it via ZenHub)
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs

fileName: 'file-manifest.json',
filter: ({ path: filePath }) => !filePath.includes('/generated/..'),
filter: ({ isChunk }) => isChunk,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our old filtering wasn't excluding fonts and svgs after upgrading the plugin for some reason. The mappings for those are still correct, but since we don't need them in the manifest, I updated this to exclude them.

@va-vfs-bot va-vfs-bot temporarily deployed to master/upgrade-webpack-manifest-plugin/master July 29, 2021 15:55 Inactive
@theodur theodur marked this pull request as ready for review July 29, 2021 15:56
@theodur theodur requested a review from a team July 29, 2021 15:56
@theodur theodur merged commit 53f5bb0 into master Jul 29, 2021
@theodur theodur deleted the upgrade-webpack-manifest-plugin branch July 29, 2021 16:53
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.

None yet

3 participants