Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Duplicate blocks should raise a warn instead of a fatal error #496

Merged
merged 1 commit into from
Dec 11, 2014

Conversation

ruyadorno
Copy link
Contributor

Not long ago we got a merged PR that avoid duplicated config blocks. That piece is working really well, the problem is just that inside the useminPrepare task we are invoking a grunt.fail.fatal error that just kills the plugin for everyone that happens to have a duplicated block somewhere. 😞

As you can see in the discussion that follows on that same PR we have an increased number of feedback from people that have duplicated blocks around their apps and can't use the plugin anymore or are just hacking around the functionality.

My humble suggestion is to change grunt.fail.fatal error into a grunt.fail.warn so that people wanting to --force that kind of behaviour will be allowed to do so.

Thanks!

sindresorhus added a commit that referenced this pull request Dec 11, 2014
Duplicate blocks should raise a warn instead of a fatal error
@sindresorhus sindresorhus merged commit 969b295 into yeoman:master Dec 11, 2014
@ruyadorno ruyadorno deleted the fix-duplicate-configs branch December 11, 2014 14:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants