1.0.1 • Published 7 years ago

karma-webpack-preprocessor v1.0.1

Weekly downloads
197
License
ISC
Repository
github
Last release
7 years ago

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'
    },

    /// ...

  })
}