Open patrick-steele-idem opened 8 years ago
Also, you might want to lazily run modernizer()
since it is only needed if the lasso-modernizr-output
dependency has been included.
Agree with everything above and I think it makes sense to turn on autoload by default and in case when we don't need Modernizr on every page we should be able to disable autoload and put plugin explicit in browser.json.
I suggest updating this plugin to not write the
modernizr-custom.min.js
to disk. Instead store the output of calling modernizr in String and use a custom dependency type to add that string to the output JavaScript bundle:With that change, the developer only needs to add the following file to their
browser.json
file: