When building with targetStylesheet - make the targetStylesheet load with the layer
tsemachh opened this issue · 2 comments
Hi
When we build with targetStylesheet a saparate CSS is created with all the CSS included in the layer.
As we want same code to run in development and production , we would like the built layer to include the
targetStylesheet .
If there will be leads of how to do it , will be happy to do it
thank you
tsemach.
The targetStylesheet configuration is intended for when you want a separate CSS file, and if you want the built layer to include the CSS, it should be omitted.
I would use the CSS Builder , the problem is that it inlines all images and makes the layer very big ,
(Not sure if it's by design or a bug)
since in some cases same image sprite is referenced from more than 1 CSS.
So basically I thought of using the targetStylesheet , but I wouldn't like to change code to support it ,
it's more convinient if the layer adds that CSS dependency to the layer, otherwise I would need to have code to load the CSS in built version.
thank you
Tsemach