Skip to content

Instantly share code, notes, and snippets.

@viperfx
Last active December 11, 2015 09:19
Show Gist options
  • Save viperfx/4579519 to your computer and use it in GitHub Desktop.
Save viperfx/4579519 to your computer and use it in GitHub Desktop.
grunt-contrib-less with yeoman

npm install grunt-contrib-less

##configure the Gruntfile.js file in your yeoman project

add to the top of the file

grunt.loadNpmTasks('grunt-contrib-less');

add the less task

// compile less to css
less: {
  style: {
    src: 'app/styles/premium-pixels.less',
    dest: 'app/styles/premium-pixels.css'
  }
},

In the watch object

less: {
    files: [
      'app/styles/*.less'
    ],
    tasks: 'less reload'
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment