Gruntfile for Drupal 7 to compile Less to CSS with source maps and JSHint.
- Place in the root directory.
- At the top of Gruntfile.js edit
mytheme
for your directory structure and changestyle
if needed. - Get dependencies with
npm install
- Run
grunt
and leave running. It'll update CSS from Less at first run, and whenever the Less files or Gruntfile change. The CSS is minified,autoprefixed, and a CSS sourcemap is created for easier debugging. JS is also watched and linted.