f2e-middle-template

2019-09-13 admin

f2e-middle-template是什么

什么是f2e-middle-template,template of f2e-server

f2e-middle-template使用教程帮助文档

f2e-middleware

f2e-middleware middlewares

Docs

f2e-server 中间件开发

middlewares

template

with lodash template npm i f2e-middle-template --save-dev

middlewares: [
    {
        test: /^test\/.*.html/,
        middleware: 'template'
    }
]

markdown

compile .md to .html npm i f2e-middle-markdown --save-dev

middlewares: [
    {
        test: /\.md$/,
        middleware: 'markdown',
        suffix: 'md',
        outputSuffix: 'html',
    }
]

proxy

proxy url to local server npm i f2e-middle-proxy --save-dev

middlewares: [
    {
        test: /^docs/,
        middleware: 'proxy',
        url: 'https://f2e-server.com',
        pathname: ''
    },
]

qrcode

show QRcode of url npm i f2e-middle-qrcode --save-dev

middlewares: [
    {
        test: /^qrcode/,
        middleware: 'qrcode'
    },
]

dest

rename resources dest npm i f2e-middle-dest --save-dev

middlewares: [
    {
        test: /^scss/,
        middleware: 'dest',
        dest: 'css'
    },
]

typescript

with typescript compiler npm i f2e-middle-typescript --save-dev use tsconfig.json

middlewares: [
    {
        middleware: 'typescript',
        getModuleId: pathname => pathname.replace('src\/', '')
    }
]

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-75012.html

文章标题:f2e-middle-template

回到顶部