karma-webpack-preprocessor

1.0.1 • Public • Published

Preprocessor to compile Webpack files on the fly.

How to install?

npm install karma-webpack-preprocessor --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
 
    // ...
 
    files: [
      './app/**/*.spec.js',
    ],
 
    preprocessors: {
      ['./app/**/*.spec.js']: ['webpack'],
    },
 
    webpackPreprocessor: {
      configPath: './config/webpack'
    },
 
    /// ...
 
  })
}
 

Package Sidebar

Install

npm i karma-webpack-preprocessor

Weekly Downloads

85

Version

1.0.1

License

ISC

Last publish

Collaborators

  • sterjakov