你好,我想用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
发布于 2015-12-13 07:59:31
我也遇到了同样的问题,我用“选项”替换了“可扩展性”,所以试试这个:
options: [
"domPrefixes",
"prefixes",
"mq",
"testAllProps",
"testProp",
"testStyles",
"html5shiv",
"setClasses"
]查看自定义自述文件:https://github.com/doctyper/customizr
https://stackoverflow.com/questions/33937485
复制相似问题