Bug #27195
Plugin stylesheet bundles contain styles from core
Difficulty:
Triaged:
No
Description
When inspecting plugin stylesheet bundles in production, they contain styles from core even though plugin does not use them and does not import them.
Steps to reproduce:
1) Go to page that uses plugin stylesheets from webpack (Hosts -> New with foreman_ansible plugin, Monitor -> Tasks)
2) Inspect the source of the css bundle
In development, the styles are pulled in as well, but it is more difficult to see as developer tools will point directly to the file from core.
Related issues
History
#1
Updated by Ondřej Pražák over 3 years ago
- Related to Refactor #27172: Do not use !important in layout stylesheets added
#2
Updated by Avi Sharvit over 3 years ago
Same is true for `js` bundles.
A copy of the core javascript gets copied into each plugin js bundle.
A copy of the core javascript gets copied into each plugin js bundle.
- Only happen if the plugins use the `componentRegistrt`
#3
Updated by The Foreman Bot about 3 years ago
- Assignee set to Avi Sharvit
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/7233 added
#4
Updated by The Foreman Bot about 3 years ago
- Pull request https://github.com/theforeman/foreman/pull/7320 added
#5
Updated by Amir Fefer over 1 year ago
- Related to Bug #33153: Slot registry isn't singleton added