Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 603 Bytes

readme.md

File metadata and controls

44 lines (35 loc) · 603 Bytes

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'
      }
    ]
  }
};