Edit Page

tasks/config/clean.js

This file configures a Grunt task called "clean".

This task is used when preparing for a new pass through the asset pipeline. Its job is to remove any existing temporary files and folders in your Sails app's web root.

(By default, the web root in a Sails app is a hidden directory called .tmp/public.)

For additional usage documentation, see grunt-contrib-clean.

Want to see for yourself?

An example of this file can be found in our sample app repo, here.

Anatomy of a Sails App