benhoIIand / grunt-cache-bust

Cache bust static assets using content hashing
MIT License
265 stars 103 forks source link

loadNpmTasks not registering `cacheBust` task #198

Open ashubham opened 8 years ago

ashubham commented 8 years ago

I am using

grunt.loadNpmTasks('grunt-cache-bust');

in my gruntfile. But when running the grunt it complaints, no task cacheBust found.

On investigation I found out that if I pass grunt as a parameter on https://github.com/hollandben/grunt-cache-bust/blob/master/tasks/cachebust.js#L23

it registers the task successfully.

diegopso commented 6 years ago

I had the same issue, downgraded to v1.6.0 and it worked fine.