-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkarma.conf.js
45 lines (43 loc) · 915 Bytes
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
var webpack = require('webpack');
module.exports = function( config ) {
config.set({
browsers: ['Chrome'],
singleRun: true,
frameworks: ['mocha'],
files: [ 'test.webpack.js' ],
preprocessors: {
'test.webpack.js' : [ 'webpack', 'sourcemap']
},
reporters: [ 'dots'],
webpack: {
devtool: 'inline-source-map',
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
include: __dirname,
},
{
test: /\.css$/,
loader: "style-loader!css-loader?modules&localIdentName=[name]__[local]___[hash:base64:5]",
include: __dirname
},
{ test: /\.md$/, loader: "html!markdownattrs?config=markdownattrsLoaderCustomConfig" },
{
test: /\.(png|svg|ttf|woff)$/,
loader: 'file'
},
{
test: /\.json$/,
loader: 'json'
}
]
}
},
webpackMiddleware: {
noInfo: true
}
})
}