UNPKG

sails-generate-frontend

Version:

Default generator for frontend code files in new Sails projects. Creates the default contents of the `assets/` folder when you run `sails new` on the command-line. Also creates a subset of the boilerplate Grunt task files (in `tasks/`); specifically, the

28 lines (25 loc) 759 B
/** * Compress CSS files. * * --------------------------------------------------------------- * * Minify the intermediate concatenated CSS stylesheet which was * prepared by the `concat` task at `.tmp/public/concat/production.css`. * * Together with the `concat` task, this is the final step that minifies * all CSS files from `assets/styles/` (and potentially your LESS importer * file from `assets/styles/importer.less`) * * For usage docs see: * https://github.com/gruntjs/grunt-contrib-cssmin * */ module.exports = function(grunt) { grunt.config.set('cssmin', { dist: { src: ['.tmp/public/concat/production.css'], dest: '.tmp/public/min/production.min.css' } }); grunt.loadNpmTasks('grunt-contrib-cssmin'); };