fis3-parser-preprocessor
0.0.7 • Public • Published fis配置使用方法
fis.match('{*.html,*.css,*.js}', {
parser: [fis.plugin('preprocessor', {
context: {
system: lang
},
options: {
}
})]
})
代码里边用法
html中
<!--@if system='cn' --> 或者 <!--@if system!='cn' -->
<!--@endif-->
js中
//@if system='cn' 或者 //@if system!='cn'
//@endif
css中
/* @if system='cn' */ 或者 /* @if system!='cn' */
/* @endif */
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.0.7
0
Version History
Package Sidebar
Install
npm i fis3-parser-preprocessor
Weekly Downloads