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

precompilation of stylesheets with stylus & co-nib #18

Open
hankeypancake opened this issue Oct 15, 2014 · 0 comments
Open

precompilation of stylesheets with stylus & co-nib #18

hankeypancake opened this issue Oct 15, 2014 · 0 comments

Comments

@hankeypancake
Copy link
Contributor

I just ran into 2 problems

If you use app.enable('merge stylesheets') the compiler will traverse the stylesheet folders
and try to precompile all stylesheets, even though they may never be needed directly.

I require a lot of my .styl-files in my main .styl-file, so they don't need to be precompiled. Only solution I can come up with is a naming convention for example _filename.styl wont be precompiled but filename.styl will.

the other problem is regarding using stylus with co-nib. When the compiler tries to precompile all the stylesheets co-nib has not yet run so the nib-path has not yet been added and therefore stylus cant require nib. is it possible to just flag the server for precompilation and do it as soon as the initialization process is done? if you try to add co-nib before co-assets-compiler in autoload.js co-nib will tell you that the assetscompiler is not loaded yet (:

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

1 participant