Sails js production mode does not display minified assets

I am using sailsjs version 0.10.5. In my sails js application, on startup, sails lift --prod

all css and js files are concatenated and saved in the .tmp / public / min folder as production.min.css and production.min.js. But when I go through the source code of my application, I see separate js and css files without concatenation. Am I missing something? Any help would be greatly appreciated. Below is the prod.js file inside the tasks / registers folder.

module.exports = function (grunt) {
    grunt.registerTask('prod', [
        'compileAssets',
        'concat',
        'uglify',
        'cssmin',
        'sails-linker:prodJs',
        'sails-linker:prodStyles',
        'sails-linker:devTpl',
        'sails-linker:prodJsJade',
        'sails-linker:prodStylesJade',
        'sails-linker:devTplJade'
    ]);
};

      

+3


source to share


1 answer


https://github.com/balderdashy/sails-docs/blob/0.9/assets.md



Follow this link explaining everything about asset nesting in sails js

+3


source







All Articles