node-lessify icon indicating copy to clipboard operation
node-lessify copied to clipboard

Can we use this to require() less files and then export them to an external CSS file?

Open bradrogers2 opened this issue 12 years ago • 1 comments

This is a really great repository. I'm wondering if this module allows for adding less (through a require call) but then exporting all of the results into an external CSS file. Basically, what I'm hoping to do is to keep the require call for a widget inside of JavaScript but then export the results to a single CSS file.

bradrogers2 avatar Jun 16 '14 23:06 bradrogers2

Thanks! There's nothing stopping you from forking the module and writing the results of the compiled LESS to a file, and then returning a null value instead. But at that point you're really fighting the framework. If you want to keep the styles and the JS separate, I would work the compilation of the LESS files into a grunt script that also invokes the browserify command.

wilson428 avatar Jun 17 '14 19:06 wilson428