Skip to content

precompilation of stylesheets with stylus & co-nib #18

@hankeypancake

Description

@hankeypancake

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 (:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions