16

I'm aware that I can create a custom build build of Modernizr to detect the features I care about. But is there a way to use Modernizr installed with Bower to detect a specific feature or set of features (such as SVG support) without including the entire library?

Basically when I do

bower install modernizr

I will get the entire library which is more than I need.

Dennis Best
  • 3,614
  • 3
  • 20
  • 31

1 Answers1

30

That's not the responsibility of Bower.

You can use grunt-modernizr to detect which tests you need and build a custom Modernizr version.

Sindre Sorhus
  • 62,972
  • 39
  • 168
  • 232