UNPKG

kongadmin

Version:
30 lines (28 loc) 772 B
/** * `buildProd` * * --------------------------------------------------------------- * * 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` * * 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. * * For more information see: * http://sailsjs.org/documentation/anatomy/my-app/tasks/register/build-prod-js * */ module.exports = function(grunt) { grunt.registerTask('buildProd', [ 'compileAssets', 'concat', 'uglify', 'cssmin', 'linkAssetsBuildProd', 'clean:build', 'copy:build' ]); };