express-bem-tools-make
v0.1.2
Published
bem engines middleware to make bundles on render
Downloads
8
Maintainers
Readme
express-bem-tools-make
bem-tools make middleware (plugin) for express-bem
Dependencies
bem-tools v0.9.0+
Peer
express-bem v0.1.3+
Why
To make bundles on each render.
Really helpful for bemxjst (bemhtml, bemtree) development purposes.
Installation
$ npm i express-bem-tools-make --save
Usage
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'});
}
License
MIT License