UNPKG

jquery-load-json

Version:

jQuery plugin that enables developers to load JSON data from the server and load JSON object into the DOM.

32 lines (28 loc) 615 B
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %> */' }, // Minifies JS files uglify: { options: { preserveComments: /^!|@preserve|@license|@cc_on/i }, dist: { files: [{ expand: true, cwd: 'src', src: ['*.js','!*.min.js'], dest: 'dist', ext: '.min.js', extDot: 'last' }] } }, }); // Load tasks grunt.loadNpmTasks('grunt-contrib-uglify'); // Default task. grunt.registerTask('default', [ 'uglify' ]); };