bemjson-loader

0.1.0 • Public • Published

bemjson-loader

Bemjson webpack loader. Extracts declarations from the bemjson file and converts them to the commonJs module.

Installation

$ npm i bemjson-loader

Usage

module.exports = {
  entry: './index.bemjson.js',
 
  module: {
    loaders: [
      {
        test: /\.bemjson\.js$/i,
        loader: 'bemjson'
      }
    ]
  }
};

or

module.exports = {
  entry: './index.bemjson.js',
 
  module: {
    loaders: [
      {
        test: /\.bemjson\.js$/i,
        loader: 'bemdecl-to-fs!bemjson?-stringify'
      }
    ]
  }
};

Readme

Keywords

Package Sidebar

Install

npm i bemjson-loader

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • yeti-or
  • just-boris
  • sullenor