Commit a8030ae7 authored by Jeff Avallone's avatar Jeff Avallone

Duplicating JS webpack config for karma

This remove the implicit dependency on bourbon for running the karma
tests
parent bfda16f4
var webpack = require('./webpack.config.js');
module.exports = function(karma) {
karma.set({
frameworks: ['jasmine'],
......@@ -15,7 +13,23 @@ module.exports = function(karma) {
singleRun: false,
webpack: {
devtool: 'inline-source-map',
module: webpack.module
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel'
},
{
test: require.resolve('snapsvg'),
loader: 'imports-loader?this=>window,fix=>module.exports=0'
},
{
test: /\.peg$/,
loader: require.resolve('./lib/canopy-loader')
}
]
}
}
});
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment