Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 598 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 598 Bytes

scrat-combo

Scrat combo request server-side middleware

Install

npm install scrat-combo

Usage

var scratCombo = require('scrat-combo')
app.get('/co', scratCombo({
    name: 'demo', // Project name
    version: '1.0.0', // Project version
    dir: 'test/public', // Public directory, default is "public"
    dest: 'c' // urlPattern prefix in "fis-config.js", default is "c"
}))

Test

Step 1: Run test server

npm test

Step 2: Request combo resource

http://localhost:1010/co??demo/1.0.0/index/index.css,demo/1.0.0/index/index.js