Sails uses Grunt for asset management. This file contains the entry point for the default asset pipeline in Sails; that is, the code that does stuff like compiling LESS stylesheets, minifying scripts for production, and precompiling and injecting client-side templates.
Sails' integration with Grunt is fully customizable, but for most use cases, this file (Gruntfile.js
) should remain unchanged. Instead, you can install Grunt plugins or add your own custom logic as new files in the tasks/
folder.
- To learn more about working with static assets in Sails, check out the conceptual documentation on assets.
- For a broader introduction to Grunt tasks in general, see Grunt's docs on configuring tasks.