Package Exports
- karma-webpack
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (karma-webpack) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
karma-webpack
// Karma configuration
module.exports = function(config) {
config.set({
// ... normal karma configuration
// add webpack as preprocessor
preprocessors: {
'test/*Test.js': ['webpack']
},
webpack: {
cache: true,
// webpack configuration
},
webpackServer: {
// webpack-dev-server configuration
// webpack-dev-middleware configuration
},
// the port used by the webpack-dev-server
// defaults to "config.port" + 1
webpackPort: 1234,
plugins: [
require("karma-webpack")
]
});
};Every test file is compiled with webpack and the resulting bundle is served.
License
Copyright 2014 Tobias Koppers