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 */

/fis3-parser-preprocessor/

    Package Sidebar

    Install

    npm i fis3-parser-preprocessor

    Weekly Downloads

    1

    Version

    0.0.7

    License

    MIT

    Last publish

    Collaborators

    • umu-duanjun
    • wayou
    • librajt