You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with multiple page setup, with all pages interlinked by anchors. All the styling provided by scss is imported in index.js, which automatically adds stylesheet link to every html file. This works just fine, however, when I try to add anchor leading to the second html file, it removes the styling from that page (styling still works on page without the anchor).
With the code below, the issue seems to be that the index.html bundle contains only test.html as a childBundle and notindex.js. The test.html bundle correctly contains index.js.
I guess there is a mechanism to only compile an Asset once, so the JSAsset gets added only to test.html, making the style appending code fail:
🐛 bug report
I am working with multiple page setup, with all pages interlinked by anchors. All the styling provided by scss is imported in index.js, which automatically adds stylesheet link to every html file. This works just fine, however, when I try to add anchor leading to the second html file, it removes the styling from that page (styling still works on page without the anchor).
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Stylesheet link should be added to each html file with "index.js" script tag
😯 Current Behavior
Stylesheet link is generated only in file (test.html) that does not link to other entry point.
No errors
💁 Possible Solution
🔦 Context
💻 Code Sample
//index.html
//test.html
//index.js file
🌍 Your Environment
The text was updated successfully, but these errors were encountered: