fis-preprocessor-replacer

fis-preprocessor-replacer

fis-preprocessor-replacer

在preprocessor阶段对内容做替换

##用法 在fis-conf.js中配置:

fis.config.merge({
    modules : {
        preprocessor: {
            tpl: 'replacer',  //要调用内容替换插件的文件类型
            js: 'replacer'
        }
    },
    settings : {
        preprocessor: {
            replacer: {
                reg: /\/page\/.+\.tpl$/,
                from: '{%extend file="',
                to: '{%extend file="newdoctor'
            }
        }
    }
});

HomePage

https://github.com/Lone/fis-preprocessor-replacer

Repository

https://github.com/Lone/fis-preprocessor-replacer


上一篇:preboot
下一篇:fis-postprocessor-autoprefixer

相关推荐

  • 整理总结:前端工程构建工具fis3篇

    FIS3 一个略微小众的被置弃维护了的前端工程构建工具,解决前端开发中自动化工具、性能优化、模块化框架、开发规范、代码部署、开发流程等问题。 在全民拥抱webpack的时代里,简单留个笔记 是爱过的印...

    1 个月前
  • 刚刚,阿里宣布开源Flutter应用框架Fish Redux!

    (https://img.javascriptcn.com/5b5604d43503deec8e2f85c6ccad523c)作者|闲鱼 Flutter 团队编辑|覃云刚刚,闲鱼宣布在 GitHub ...

    1 年前
  • yyl-file-replacer

    a file replace plugin for yyl yylfilereplacer a file replace plugin for yyl 安装 引入 usage ht...

    1 年前
  • wasm-module-preprocessor

    A generalpurpose module for preprocessing WebAssembly (wasm). wasmmodulepreprocessor A generalpur...

    1 年前
  • superfish

    Superfish is a jQuery plugin that adds usability enhancements to multilevel dropdown menus. Fully su...

    2 年前
  • stream-replacer

    A throughstream that replaces by a RegExp and an async replace function streamreplacer npm versio...

    5 个月前
  • springbokjs-preprocessor

    SpringbokJS Preprocessor springbokjspreprocessor CDN by jsDelivr A free, fast, and rel...

    8 个月前
  • preprocessor

    Preprocessor.js: A JavaScript source file preprocessor, e.g. to build different versions of a librar...

    1 年前
  • pathifist

    URL Path Utility pathifist travis(https://img.shields.io/travis/untool/pathifist/master.svg)(http...

    2 个月前
  • nsp-preprocessor-yarn

    Yarn.lock preprocessor for NSP Usage: If it logs this means you're covered. Why TLDR: if y...

    1 年前

官方社区

扫码加入 JavaScript 社区