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

Fix layout and hashing #414

Closed
wants to merge 5 commits into from
Closed

Fix layout and hashing #414

wants to merge 5 commits into from

Conversation

maier49
Copy link
Contributor

@maier49 maier49 commented Jul 8, 2020

Type: bug
The following has been addressed in the PR:

  • There is a related issue
  • All code has been formatted with prettier
  • Unit or Functional tests are included in the PR
  • schema.json has been updated appopriately

Description:
My previous attempt to fix these was to put the image in the same structure as the bundles. That worked, except for with a dynamic __webpack_public_path__, since the paths in url()s in CSS files were still generated at build time. They can't be absolute since the final path may not be from the root, and the relative path is always wrong since it has the path to the css file tacked on by the browser. Putting the css and js bundles at the root (using the naming convention path-to-filename.ext) works in all these scenarios since the paths are just relative to the root of the project.
Resolves #314, #315

@maier49
Copy link
Contributor Author

maier49 commented Aug 17, 2020

Resolved by #423

@maier49 maier49 closed this Aug 17, 2020
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.

Fix consistency of output paths of assets
1 participant