0.1.0 • Published 8 years ago

bemjson-loader v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago