koa http concat
A koa middleware for concatenating files in a given context: CSS and JS files usually.
Reference http-cancat
Install
npm i koa-http-concat -S
Usage
Server Side
const path = ;const Koa = ;const koaHttpConcat = ;const app = ;app;app;
Client Side
http://example.com/??script1.js,script2.js,build/script.js
http://example.com/??script1.js,script2.js,build/script.js?v=2016
http://example.com/??style1.css,style2.css,build/style.css
http://example.com/??style1.css,style2.css,build/style.css?v=2016