karma-borschik-preprocessor
v0.1.6
Published
A Karma plugin. Build JavaScript files trhough borschik on the fly.
Downloads
2
Maintainers
Readme
karma-borschik-preprocessor
Preprocessor to build JavaScript files through borschik on the fly.
Installation
The easiest way is to keep karma-borschik-preprocessor
as a devDependency in your package.json
.
{
"devDependencies": {
"karma": "~0.10",
"karma-borschik-preprocessor": "~0.1"
}
}
You can simple do it by:
npm install karma-borschik-preprocessor --save-dev
Configuration
Following code shows the default configuration...
// karma.conf.js
module.exports = function(config) {
config.set({
preprocessors: {
'**/*.js': ['borschik']
},
borschikPreprocessor: {
// options passed to the borschik builder
options: {
'comments': true,
'minimize': true
}
}
});
};
For more information on Karma see the homepage.