/** * `tasks/register/buildProd.js` * * --------------------------------------------------------------- * * This Grunt tasklist will be executed instead of `build` if you * run `sails www` in a production environment, e.g.: * `NODE_ENV=production sails www` * * For more information see: * https://sailsjs.com/anatomy/tasks/register/build-prod.js * */ module.exports = function(grunt) { grunt.registerTask('buildProd', [ 'polyfill:prod', //« Remove this to skip transpilation in production (not recommended) 'compileAssets', 'babel', //« Remove this to skip transpilation in production (not recommended) 'concat', 'uglify', 'cssmin', 'hash',//« Cache-busting 'copy:beforeLinkBuildProd',//« For prettier URLs after cache-busting 'linkAssetsBuildProd', 'clean:build', 'copy:build', 'clean:afterBuildProd' ]); };