我正在寻找一个全局模式,它排除了文件名的某些部分。例如,我想获取所有的*.js文件,但排除所有的*.map.js文件。
/hello/world.js // match
/hello/world.map.js // no match
/hello/world.test.js // match
我认为使用像这样的/**/*!(.map).js这样的not模式可以工作,但它仍然匹配上面的所有三个路径。
我很好奇,如果不使用ignore模式选项,这是否可能。谢谢!
基本上,我正在为IE的不同版本优化一个网站。我使用的是IE9 (通过IE的about页面验证)。
在本地(使用xampp),网站会正确地检测到浏览器是IE9,并加载正确的css代码。但是,当我将代码放到文本服务器上时,它将浏览器视为IE7。
对于测试:
使用xmapp在本地获得的输出
According to the conditional comment this is IE
According to the conditional comment this is IE 9
According to the conditional comment this is IE 8 or higher