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

23 lines (20 loc) 468 B
/** * `uglify` * * --------------------------------------------------------------- * * Minify client-side JavaScript files using UglifyJS. * * For usage docs see: * https://github.com/gruntjs/grunt-contrib-uglify * */ module.exports = function(grunt) { grunt.config.set('uglify', { dist: { src: ['.tmp/public/concat/production.js'], dest: '.tmp/public/min/production.min.js' } }); grunt.loadNpmTasks('grunt-contrib-uglify'); };