enb make middleware (plugin) for express-bem
enb v0.13.9+
express-bem v0.2.1+
To build bundles on each render.
$ npm i express-bem-enb-make --save
var express = require('express');
var expressBem = require('express-bem');
var app = express();
var bem = expressBem({projectRoot: './path-to/bem-project'});
bem.bindTo(app);
if (process.env.NODE_ENV === 'development') {
bem.use(require('express-bem-enb-make').middleware, {verbosity: 'debug'});
// bem.usePlugin('tools-make', {verbosity: 'debug'});
}
MIT License