Skip to content

express-bem/tools-make

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-bem-tools-make

Build Status Dependency Status

bem-tools make middleware (plugin) for express-bem

Warn: Incompatible with clustering.

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

About

bem engines middleware to make bundles on render

Resources

License

Stars

Watchers

Forks

Packages

No packages published