You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
895 B
41 lines
895 B
8 years ago
|
var webpack = require('webpack');
|
||
|
|
||
|
module.exports = function (config) {
|
||
|
config.set({
|
||
|
browsers: [ process.env.CONTINUOUS_INTEGRATION ? 'Firefox' : 'Chrome' ],
|
||
|
singleRun: true,
|
||
|
frameworks: [ 'mocha' ],
|
||
|
files: [
|
||
|
'tests.webpack.js'
|
||
|
],
|
||
|
preprocessors: {
|
||
|
'tests.webpack.js': [ 'webpack' ]
|
||
|
},
|
||
|
reporters: [ 'dots' ],
|
||
|
webpack: {
|
||
|
module: {
|
||
|
loaders: [{
|
||
|
test: /\.js$/,
|
||
|
exclude: /(node_modules|bower_components)/,
|
||
|
loader: 'babel',
|
||
|
query: {
|
||
|
presets: ['react', 'es2015']
|
||
|
}
|
||
|
}, {
|
||
|
test: /\.less$/,
|
||
|
loader: 'style!css!less'
|
||
|
}, {
|
||
|
test: /\.css$/,
|
||
|
loader: 'style!css'
|
||
|
}, {
|
||
|
test: /\.(eot|woff|woff2|ttf|svg|png)/,
|
||
|
loader: 'url'
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
webpackServer: {
|
||
|
noInfo: true
|
||
|
}
|
||
|
});
|
||
|
};
|