Heya - anyone using grunt here?
Grunt is fairly easy to handle - but still gets me in knots.
I am trying to get uglify to work. And nope - I cannot do it.
I AM loading in all the dependancies into my Gruntfile.js. I am using grunt-contrib-watch and grunt-contrib-uglify.
Below is the guts of my initConfig code which is realising that a file is changing - but it’s not kicking in the compression.
uglify: {
build: {
src: 'js/offreg.js',
dest: 'js/offreg.min.js'
}
},
watch: {
uglify:{
files: 'js/offreg.js',
tasks: 'uglify'
}
}
How do I use uglify!? There is no actual cohesive example in the github page.