Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

http-concat

weizs5MIT0.1.1

A express middleware for concatenating files in a given context: CSS and JS files usually

express, node, http, concat

readme

http concat

A express middleware for concatenating files in a given context: CSS and JS files usually

Installation

npm install express-http-concat --save

var express = require('express');
var httpConcat = require('http-concat');

var app = express();

app.use(httpConcat({
    base: path.join(__dirname, 'public', 'static'),
    path: '/'
}));

Use

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