fis配置使用方法
fis.match('{*.html,*.css,*.js}', {
parser: [fis.plugin('preprocessor', {
context: {
system: lang
},
options: {
}
})]
})
- 具体api请查看preprocess
代码里边用法
html中
<!--@if system='cn' --> 或者 <!--@if system!='cn' -->
<!--@endif-->
js中
//@if system='cn' 或者 //@if system!='cn'
//@endif
css中
/* @if system='cn' */ 或者 /* @if system!='cn' */
/* @endif */