You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2019. It is now read-only.
The tool support for compiling LESS appeared kind of weak when I was looking into it initially. It seemed like the preffered way was to include the javascript library, like described at the top of this page: http://lesscss.org/.
I will work on writing something up about how to use the SASS hooks that @robatron wrote.
There is a command line usage for LESS which works like this:
$ lessc styles.less > styles.css
To output minified CSS, simply pass the -x option. If you would like more involved minification, the YUI CSS Compressor is also available with the --yui-compress option.
It would be awesome if this option would be integrated in wok so that you could type something like wok --yui-compress and it would do the work.
@olivierdb: With the latest version of Wok, you can use the existing contrib hook function compile_sass to compile any SASS files found in your output directory after site render to CSS. To use it, you would attach the compile_sass hook function to the 'site.output.post' hook in your <project_root>/hooks/__hooks__.py file like so:
I noticed a closed issue about SASS and using hooks, but I'm a newbie so I don't understand how to use it!
I would also prefer using LESS if I could!
The text was updated successfully, but these errors were encountered: