bem-tools make middleware (plugin) for express-bem
Warn: Incompatible with clustering.
bem-tools v0.9.0+
express-bem v0.1.3+
To make bundles on each render.
Really helpful for bemxjst (bemhtml, bemtree) development purposes.
$ npm i express-bem-tools-make --save
var
Express = require('express'),
ExpressBem = require('express-bem'),
app = Express(),
bem = ExpressBem({projectRoot: './path-to/bem-project'});
bem.bindTo(app);
if (process.env.NODE_ENV === 'development') {
bem.use(require('express-bem-tools-make').middleware, {verbosity: 'debug'});
// bem.usePlugin('tools-make', {verbosity: 'debug'});
}
MIT License