Skip to content
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

When building with targetStylesheet - make the targetStylesheet load with the layer #58

Open
tsemachh opened this issue Nov 7, 2016 · 2 comments

Comments

@tsemachh
Copy link

tsemachh commented Nov 7, 2016

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.

@kriszyp
Copy link
Owner

kriszyp commented Nov 7, 2016

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.

@tsemachh
Copy link
Author

tsemachh commented Nov 8, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants