webpack-cov.conf.js 600 B

1234567891011121314151617181920212223242526
  1. var path = require('path');
  2. module.exports = {
  3. entry: './test/build/index.js',
  4. output: {
  5. path: __dirname + "/build",
  6. filename: "coverage.js",
  7. publicPath: "./build/"
  8. },
  9. bail: true,
  10. module: {
  11. loaders: [
  12. { test: /\.json$/, loader: 'json-loader' },
  13. { test: /\.ipynb$/, loader: 'json-loader' },
  14. { test: /\.css$/, loader: 'style-loader!css-loader' },
  15. ],
  16. preLoaders: [
  17. // instrument only testing sources with Istanbul
  18. {
  19. test: /\.js$/,
  20. include: path.resolve('lib/'),
  21. loader: 'istanbul-instrumenter'
  22. }
  23. ]
  24. }
  25. }