Skip to content

bempack/bemjson-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Extracts declarations from the bemjson file

Resources

License

Stars

Watchers

Forks

Packages

No packages published