Gruntfile.js

module.exports = function (grunt) { require('jit-grunt')(grunt); grunt.initConfig({ less: { development: { options: { compress: true, yuicompress: true, optimization: 2 }, files: { 'dist/css/api.min.css': '_less/api.less' } } }, uglify: { options: { mangle: false }, my_target: { files: { 'dist/js/api.min.js': '_js/api.js', 'dist/js/notifications.min.js': '_js/notifications.js', 'dist/js/template.min.js': '_js/template.js' } } }, watch: { options: { nospawn: true }, less: { files: ['_less/*.less'], tasks: ['less'] }, uglify: { files: ['_js/*.js'], tasks: ['uglify'] } } }); grunt.loadNpmTasks('grunt-contrib-less'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.registerTask('default', ['less', 'uglify', 'watch']); };
Gruntfile.js

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.