Back to Sails

tasks/config/hash.js

docs/anatomy/tasks/config/hash.js.md

12.12.2000460 B
Original Source

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.

<docmeta name="displayName" value="hash.js">