Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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'
    },
 
    /// ...
 
  })
}
 

Install

npm i karma-webpack-preprocessor

DownloadsWeekly Downloads

390

Version

1.0.1

License

ISC

Last publish

Collaborators

  • avatar