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

file-manifest.json points to .scss font #18317

Closed
meganhkelley opened this issue Jan 8, 2021 · 3 comments
Closed

file-manifest.json points to .scss font #18317

meganhkelley opened this issue Jan 8, 2021 · 3 comments
Assignees
Labels
tools-fe Used for the frontend tools team

Comments

@meganhkelley
Copy link
Contributor

meganhkelley commented Jan 8, 2021

https://prod-va-gov-assets.s3-us-gov-west-1.amazonaws.com/generated/file-manifest.json

Look into:

  1. why this is happening.
  2. If we need it,
  3. If we don’t need it, remove it, if we do document why somewhere
@meganhkelley meganhkelley added the tools-fe Used for the frontend tools team label Jan 8, 2021
@meganhkelley
Copy link
Contributor Author

Tim Wright Jan 6th at 10:17 AM
Does anyone have any insight as to why the last item in this file is “style.scss” and it’s pointing to a font? https://www.va.gov/generated/file-manifest.json
👀
2
:face_with_raised_eyebrow:
1

8 replies

Tim Wright 2 days ago
Wondering if it’s used in some way or it’s something we should clean up.

Bill Fienberg 2 days ago
I don’t know why it’s like that, and that seems strange.

Tim Wright 2 days ago
Yeah, I saw it locally and thought it was something with the Webpack work I’m doing, but it’s in prod as well.

Jhonny Gonzalez:spiral_calendar_pad: 2 days ago
yeah, that's bizarre, Why is there a font?

Tim Wright 2 days ago
¯_(ツ)_/¯

Tim Wright 2 days ago
@Megan Kelley Can we spin up a maintenance ticket for this^ ? For someone to look into 1. why this is happening. 2. If we need it, 3. If we don’t need it, remove it, if we do document why somewhere

Megan Kelley:spiral_calendar_pad: 2 days ago
sure, but we should check with design system team first to see if they have any insight — cc @chris.valarida I believe you're on support this week

Christopher Valarida 2 days ago
Ohh, funky! Not just that it's pointing to a font, but also that it's .scss. The style.css above looks fine, but the style.scss is the font. 😕
My hunch is that it has to do with the fact that we need to give Webpack an entry file and have it generate style.js and style.js.map just so we can get style.css. Given that it's the only .scss file in the manifest, I'd start my investigation there.

@theodur
Copy link
Contributor

theodur commented Jul 28, 2021

After investigating, the cause seems to be coming from a bug in the webpack-manifest-plugin, specifically when used with the mini-css-extract-plugin (more context). The version mentioned in one of the bug tickets is the same version we are currently using, 2.2.0, which is almost 2 years old 😬.

I created a PR for upgrading the plugin to the latest version 4.0.1. The plugin has required Webpack v4.44.0+ since v3.0.0 was released, and we are currently using Webpack v4.43.0. Even though everything seemed to work fine with our current version, I upgraded Webpack to 4.46.0 just to be safe. It's only a few bug fixes ahead, so it should affect anything.

@theodur
Copy link
Contributor

theodur commented Jul 29, 2021

The PR for this ticket has been merged ✅

@theodur theodur closed this as completed Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tools-fe Used for the frontend tools team
Projects
None yet
Development

No branches or pull requests

2 participants