prod.js 791 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * `tasks/register/prod.js`
  3. *
  4. * ---------------------------------------------------------------
  5. *
  6. * This Grunt tasklist will be executed instead of `default` when
  7. * your Sails app is lifted in a production environment (e.g. using
  8. * `NODE_ENV=production node app`).
  9. *
  10. * For more information see:
  11. * https://sailsjs.com/anatomy/tasks/register/prod.js
  12. *
  13. */
  14. module.exports = function(grunt) {
  15. grunt.registerTask('prod', [
  16. 'polyfill:prod', //« Remove this to skip transpilation in production (not recommended)
  17. 'compileAssets',
  18. 'babel', //« Remove this to skip transpilation in production (not recommended)
  19. 'concat',
  20. 'uglify',
  21. 'cssmin',
  22. 'sails-linker:prodJs',
  23. 'sails-linker:prodStyles',
  24. 'sails-linker:clientSideTemplates',
  25. ]);
  26. };