Parses css files into javascript AMD modules files.


Clear files and folders (part of the grunt-contrib collection). Submitted by Tim Branyen.

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-contrib-clean

Then add this line to your project's grunt.js gruntfile:


Inside your grunt.js file, add a section named clean.

Due to the destructive nature of this task, always be cautious of the paths you clean.

There are three formats you can use to run this task.

clean: ["path/to/dir/one", "path/to/dir/two"]
clean: {
  build: ["path/to/dir/one", "path/to/dir/two"],
  release: ["path/to/another/dir/one", "path/to/another/dir/two"]
clean: {
  build: {
    src: ["path/to/dir/one", "path/to/dir/two"]

This defines what paths this task will clean recursively (supports grunt.template and minimatch).