h5bp/ant-build-script — pull request #56 by rolos79 (2012-04-18 17:08:21+00:00)
Title: Adding LESS CSS to build script

- Lets try again. This fork now has latest version of LESS (1.3.0).

I think I've managed to add optional compilation of LESS files into the h5bp ant build script.

The script compiles LESS CSS to pure CSS and also removes any references to the LESS JavaScript in your HTML.

To test my fork follow these steps.

1. Create a LESS file in the css folder e.g. style.less and add some LESS code.
2. In default.properties make these changes:
* file.root.stylesheet = style.less
* build.css.less = true
3. Run ant.

I've tested this will the examples from the LESS homepage and it appears to be working fine. Also as I've integrated it with the current CSS processing @import, minification and filename hash should continue to work with LESS.

Let me know what you think.

Chris Rowe