简体   繁体   English

如何在库中包含modernizr

[英]How to include modernizr in a library

I am currently working on a javascript library that holds Modernizr as a dependency. 我目前正在研究将Modernizr作为依赖项的JavaScript库。 What is the best practice for including Modernizr in a library without interfering with users of the library from including their own Modernizr builds? 在不将库中包括自己的Modernizr生成物干扰到库用户的情况下,将Modernizr包含在库中的最佳实践是什么?

Which tests within Modernizr do you require they use? 您需要在Modernizr中使用哪些测试?

I would link to the builder with those presets and say "go get this custom build of modernizr. If you already use it, please confirm you have these detects in your build." 我将链接到具有这些预设的构建器,并说“去获得这个modernizr的自定义构建。如果您已经使用过,请确认您的构建中包含这些检测。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM