-
Notifications
You must be signed in to change notification settings - Fork 0
fix: adjust css file loading #7
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
Changes from 3 commits
c496778
5c01feb
9584dc8
83b6143
1ac1059
c1d72da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,14 +13,14 @@ class Panel { | |
| const configs = { | ||
| welcome: { | ||
| htmlFile: 'src/panels/welcome/welcome.html', | ||
| cssFile: 'src/styles/styles.css', | ||
| cssFile: 'src/styles/welcome.css', | ||
| jsFile: 'src/panels/welcome/welcome.js', | ||
| containerId: 'carbon-visualizer-welcome-panel', | ||
| className: 'cv-panel--welcome' | ||
| }, | ||
| results: { | ||
| htmlFile: 'src/panels/results/results.html', | ||
| cssFile: 'src/panels/results/results.css', | ||
| cssFile: 'src/styles/results.css', | ||
|
||
| jsFile: 'src/panels/results/results.js', | ||
| containerId: 'carbon-visualizer-results-panel', | ||
| className: 'cv-panel--results' | ||
|
|
||
This file was deleted.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we refactor this so we just have the one
styletag with#carbon-visualizer-core-css-bundlethat contains all the styles from the other files? As-is, we get 6 other unidentifiedstyletags that are harder to find when debugging.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we think about a
styletag for the bundle, then adding one for the css for each panel?I'm not sure performance-wise it makes a huge difference whether you throw all the panel styles in the bundle or keep them separate. It just felt slightly more logical to have panel styles separate, but it seems reasonable to bundle them too, so I'm on the fence and happy to go either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be happy to lump them all together. Keeping them separated is more useful on the authoring side, but bundling them on the consuming side should be fine, and it would simplify
Panel.jsa bit.