Skip to content

Updated to Webpack Encore 1.0 #1186

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

Merged
merged 1 commit into from
Apr 14, 2021

Conversation

javiereguiluz
Copy link
Member

No description provided.

@javiereguiluz
Copy link
Member Author

@weaverryan do the contents of manifest.json (https://github.com/symfony/demo/pull/1186/files#diff-5b25b49754eae753751b405108bfa940b5643f068e4ea9576651106d44f7cc86) look OK to you?

To me is strange to have this "font" called "app":

"build/app.eot": "/build/fonts/glyphicons-halflings-regular.5be1347c.eot",
  "build/app.svg": "/build/images/glyphicons-halflings-regular.060b2710.svg",
  "build/app.ttf": "/build/fonts/glyphicons-halflings-regular.4692b9ec.ttf",
  "build/app.woff": "/build/fonts/lato-normal.1d2ca94d.woff",
  "build/app.woff2": "/build/fonts/lato-normal.75614cfc.woff2",

And, is it OK to link to node_modules directly in the other fonts?

"build/node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.svg": "/build/images/fa-solid-900.0454203f.svg",
  "build/node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.svg": "/build/images/fa-brands-400.991c1c76.svg",
  ...

Thanks

@stof
Copy link
Member

stof commented Jan 28, 2021

@javiereguiluz these are entries managed by webpack to reference them in CSS files, not entries that you will reference yourselves. So their name does not really matter.

@javiereguiluz
Copy link
Member Author

OK, thanks ... but this looks wrong:

  "build/app.eot": "/build/fonts/glyphicons-halflings-regular.5be1347c.eot",
  "build/app.svg": "/build/images/glyphicons-halflings-regular.060b2710.svg",
  "build/app.ttf": "/build/fonts/glyphicons-halflings-regular.4692b9ec.ttf",
  "build/app.woff": "/build/fonts/lato-normal.1d2ca94d.woff",
  "build/app.woff2": "/build/fonts/lato-normal.75614cfc.woff2",

These fonts should be exported as a font called "app". It's probably a misconfiguration on our side.

@stof
Copy link
Member

stof commented Jan 29, 2021

Well, for these fonts, we actually don't care about them being in the manifest: they are not configured entries in the Encore config but they are referenced in CSS. That's probably why they have weird names: their name is never configured anywhere.

@weaverryan
Copy link
Member

We have few issues open right now related to some of the paths of images/fonts in manifest.json. So while this won't affect symfony-demo, I think there is some outstanding problem.

@javiereguiluz javiereguiluz force-pushed the update_webpack_encore branch 2 times, most recently from 3ab8155 to bdce21b Compare April 14, 2021 09:07
@javiereguiluz javiereguiluz force-pushed the update_webpack_encore branch from bdce21b to f2036d7 Compare April 14, 2021 10:41
@javiereguiluz javiereguiluz merged commit 1155cce into symfony:main Apr 14, 2021
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.

3 participants