We are currently using grunt-contrib-less to process our LESS file as a Grunt task. The fewer files are stored in a structure like this:
assets/ styles/ base.less client/ client.less device/ tablet.less phone.less
For our Grunt configuration, we have the following:
less: { options: { paths: 'assets/', yuicompress: false, ieCompat: true, require: [ 'assets/styles/base.less' ] }, src: { expand: true, cwd: 'assets/', src: [ 'styles/**/*.less' ], ext: '.css', dest: 'assets/' } },
Currently, this installs all generated css files into the same directory as the source file with fewer files. We would like them to spit out in the / assets / css / directory, but with the same relative structure. eg:
assets/ css/ base.css client/ client.css device/ tablet.css phone.css
Is there a grunt-free configuration that can do this?
source share