您好我想使用Grunt Modernizr。它适用于我的javascript。但是脚本没有添加Css类?有人知道为什么吗?
modernizr: {
prod: {
parseFiles: true,
customTests: [],
devFile: false,
dest: '<%= path.jsSrc %>build/modernizr.min.js',
tests: [
"input",
"inputtypes",
"touchevents",
"css/flexbox",
"css/flexboxlegacy",
"css/flexboxtweener"
],
extensibility: [
"domPrefixes",
"prefixes",
"mq",
"testAllProps",
"testProp",
"testStyles",
"html5shiv",
"setClasses"
],
extra: {
"mq" : false,
"cssclasses" : true
},
files: {
src: [
'<%= path.cssSrc %>**/*.scss',
'<%= path.jsSrc %>*.js',
'<%= path.jsSrc %>libs/*.js'
]
},
uglify: true
}
},
我在html
上看不到no-flexbox答案 0 :(得分:1)
我有同样的问题,我更换了#34;可扩展性&#34;使用&#34;选项&#34;,请尝试以下操作:
options: [
"domPrefixes",
"prefixes",
"mq",
"testAllProps",
"testProp",
"testStyles",
"html5shiv",
"setClasses"
]
查看自定义程序自述文件: https://github.com/doctyper/customizr