Edit Page

tasks/config/hash.js

This file configures a Grunt task called "hash".

This task implements cache-busting for minified CSS and JavaScript files.

Specifically, its job is to append a unique hash to the end of a filename.

For example: bar/foo.css => bar/dist/foo.f8494f81.css

Usage

#

For additional usage documentation, see grunt-hash.

Want to see for yourself?

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

Anatomy of a Sails App