-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the problem
As hinted in this PR #12374 it would be good to have the option to have injected css on a per component basis especially since the main usage of css injected is to render og images where you want the css to be injected only for that specific component.
Describe the proposed solution
It should be as simple as adding the option parsing in /src/compiler/phases/1-parse/read/options.js...i've actually already implemented it locally and i'm ready to push a PR for it but wanted to open the issue just to confirm that
- it's actually something needed and wanted (i was surprised it was this simple to implement since Rich left this detail out of that PR)
- my approach is actually correct and i'm not missing some important piece that will make this not work
From what i was able to see it seems everything is working...the css is generate only for the components that have this option and injected in the head both if the option-ated component is the only one or a nested one.
Importance
nice to have
Inqnuam, AlexRMU and The-Compass
Metadata
Metadata
Assignees
Labels
No labels