f2e-middleware
v0.0.1
Published
f2e-server middlewares
Downloads
2
Readme
f2e-middleware
f2e-server middlewares
Docs
middlewares
template
with lodash templatenpm i f2e-middleware-template --save-dev
middlewares: [
{
test: /^test\/.*.html/,
middleware: 'template'
}
]
markdown
compile .md
to .html
npm i f2e-middleware-markdown --save-dev
middlewares: [
{
test: /\.md$/,
middleware: 'markdown',
suffix: 'md',
outputSuffix: 'html',
}
]
proxy
proxy url to local servernpm i f2e-middleware-proxy --save-dev
middlewares: [
{
test: /^docs/,
middleware: 'proxy',
url: 'https://f2e-server.com',
pathname: ''
},
]
qrcode
show QRcode of url
npm i f2e-middleware-qrcode --save-dev
middlewares: [
{
test: /^qr/,
middleware: 'qrcode'
},
]
dest
rename resources destnpm i f2e-middleware-dest --save-dev
middlewares: [
{
test: /^scss/,
middleware: 'dest',
dest: 'css'
},
]
typescript
with typescript compiler
npm i f2e-middleware-typescript --save-dev
use tsconfig.json
middlewares: [
{
middleware: 'typescript',
getModuleId: pathname => pathname.replace('src\/', '')
}
]