Skip to content

Static assets do not preserve path structure #3087

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

Closed
JoeWoodward opened this issue Jul 7, 2021 · 2 comments
Closed

Static assets do not preserve path structure #3087

JoeWoodward opened this issue Jul 7, 2021 · 2 comments

Comments

@JoeWoodward
Copy link

Somewhat related to #3080

Previously static assets preserved their path structure. e.g. app/packs/fonts/sans-serif/black.woff would previously have a manifest entry media/fonts/sans-serif/black.woff but now it removes sans-serif and is just media/images/black.woff

Looks like it was introduced when upgrading to webpack 5 here 6ba995a#diff-716197750a05276089fff034fe03597e5d569526a8ea683fb0022cf69456cbc4

In the old version the folder name was inserted but now only the hash is used https://github.com/rails/webpacker/blob/v6.0.0.beta.7/package/rules/file.js

@sled
Copy link

sled commented Jul 7, 2021

I think this is discussed in issue #2956 looks like this is an issue in the config for webpack-assets-manifest, see my comment here: #2956 (comment)

@JoeWoodward
Copy link
Author

Thanks @sled that fixed it! Closing in favor of #2956

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

No branches or pull requests

2 participants