Advertisement
Varun_Krishna

is this Gruntfile.js for uglify is the correct way to code?

Nov 17th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = function(grunt){
  2.     grunt.initConfig({
  3.         pkg: grunt.file.readJSON('package.json'),
  4.         uglify: {
  5.             options: {
  6.                 mangle: true
  7.             },
  8.             my_target: {
  9.                 files: {
  10.                     "dest/output2.min.js" : ["src/one.js"]
  11.                 }
  12.             }//end of my_target
  13.         }//end of uglify
  14.     });
  15.     grunt.loadNpmTasks('grunt-contrib-uglify');
  16.  
  17.     grunt.registerTask('default',['uglify']);
  18. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement