App skeleton
This commit is contained in:
27
tasks/register/prod.js
Normal file
27
tasks/register/prod.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* `tasks/register/prod.js`
|
||||
*
|
||||
* ---------------------------------------------------------------
|
||||
*
|
||||
* This Grunt tasklist will be executed instead of `default` when
|
||||
* your Sails app is lifted in a production environment (e.g. using
|
||||
* `NODE_ENV=production node app`).
|
||||
*
|
||||
* For more information see:
|
||||
* https://sailsjs.com/anatomy/tasks/register/prod.js
|
||||
*
|
||||
*/
|
||||
module.exports = function(grunt) {
|
||||
grunt.registerTask('prod', [
|
||||
'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',
|
||||
'sails-linker:prodJs',
|
||||
'sails-linker:prodStyles',
|
||||
'sails-linker:clientSideTemplates',
|
||||
]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user