bemjson-loader
v0.1.0
Published
Extracts declarations from the bemjson file
Downloads
7
Readme
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'
}
]
}
};