Back to Sails

tasks/register/buildProd.js

docs/anatomy/tasks/register/buildProd.js.md

12.12.2000493 B
Original Source

tasks/register/buildProd.js

This Grunt tasklist will be executed instead of build if you run sails www in a production environment, e.g.:

bash
NODE_ENV=production sails www

This generates a folder containing your compiled (and usually minified) assets. The most common use case for this is bundling up files to deploy to a CDN.

This is also useful for building standalone applications with tools like PhoneGap or Electron.

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