-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathkarma.conf.js
39 lines (36 loc) · 1.11 KB
/
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
var webpack = require('webpack');
module.exports = function(config) {
config.set({
browsers: ['Chrome'],
frameworks: ['jasmine'],
reporters: ['mocha'],
logLevel: config.LOG_INFO,
autoWatch: true,
singleRun: false,
colors: true,
port: 9876,
basePath: '',
files: ['webpack.karma.context.js'],
preprocessors: { 'webpack.karma.context.js': ['webpack'] },
exclude: [],
webpack: {
devtool: 'eval',
module: {
loaders: [
{test: /\.js$/, loader: 'babel', exclude: /(\.test.js$|node_modules)/},
{test: /\.css$/, loader: 'style!css'},
{test: /\.tpl.html/, loader: 'html'},
{test: /\.(png|jpg|gif|svg|eot|ttf|woff|woff2)$/, loader: 'url?limit=50000'}
]
},
plugins: [
new webpack.ProvidePlugin({
'window.jQuery': 'jquery'
})
]
},
webpackMiddleware: {
noInfo: true
}
});
};