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

Manual revert of 423 #444

Merged
merged 2 commits into from
Dec 4, 2020
Merged

Manual revert of 423 #444

merged 2 commits into from
Dec 4, 2020

Conversation

tomdye
Copy link
Member

@tomdye tomdye commented Dec 3, 2020

Reverts: #423

This PR manually reverts #423.
This code has been found to cause issues with image urls in css files where the final path from the html file requesting the image differs from the widget ts file that creates it.

For example in a BTR environment with a webpage created at src/pages/ClientA.tsx requiring a css file from src/pages/ClientA.m.css.

/* pages/ClientA.m.css */

.root {
   background-image: url('../images/clientABackground.jpg');
   /* full path is /src/images/clientABackground.jpg */
}

When the BTR site is build, in this case, the clientA page is now at /clients/clientA.html and the relative image path from the css file now resolves to /src/pages/images/clientABackground.jpg which is incorrect.

This approach will always cause us problems where the widget resulting in a webpage is not served in the same relative directory structure as the source files. This becomes further more problematic in circumstances where you may have a widget requiring css images served in multiple locations.

We must revisit #314 #315 when this has been reverted.

@codecov
Copy link

codecov bot commented Dec 4, 2020

Codecov Report

Merging #444 (bd52bf3) into master (ce42a62) will increase coverage by 0.37%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #444       /-   ##
==========================================
  Coverage   43.16%   43.54%    0.37%     
==========================================
  Files          12       12              
  Lines         885      875      -10     
  Branches      271      265       -6     
==========================================
- Hits          382      381       -1     
  Misses        503      494       -9     
Impacted Files Coverage Δ
src/base.config.ts 19.40% <ø> (-0.18%) ⬇️
src/dist.config.ts 23.28% <ø> ( 2.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ce42a62...bd52bf3. Read the comment docs.

@tomdye tomdye merged commit 6473d4e into dojo:master Dec 4, 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.

2 participants