firstandthird / load-grunt-config

Grunt plugin that lets you break up your Gruntfile config by task
firstandthird.github.io/load-grunt-config/
MIT License
374 stars 64 forks source link

Dynamically add tasks #43

Closed noahgrant closed 10 years ago

noahgrant commented 10 years ago

I've been running into problems using load-grunt-config and usemin. When useminPrepare dynamically creates the settings for concat and uglify tasks (to be used by usemin), those "generated:" targets are not stored in the grunt.config.data object!

Any current way around this?

Thanks!

noahgrant commented 10 years ago

Well my grunt tasks error out because there are no concat or uglify targets registered! It seems that the registry does not get updated with the tasks dynamically added by useminPrepare.

All I'm sayin'. Right now it's either I use usemin or I use LGC. They're not playing well together.

jgallen23 commented 10 years ago

Can you create a gist so I can reproduce?

noahgrant commented 10 years ago

It's a little late for me, so hopefully this makes some sense. I tried to add only the relevant parts, with a little narration:

https://gist.github.com/ngfluid/9543509

hkdobrev commented 10 years ago

@ngfluid I've forked your gist and formatted it for readability. I've found several problems with my useminPrepare config by just formatting its output.

Here it is: https://gist.github.com/hkdobrev/9560651

jgallen23 commented 10 years ago

closing. reopen if its still an issue