mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
59 lines
1.3 KiB
JavaScript
59 lines
1.3 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = function (config) {
|
|
config.set({
|
|
basePath: '',
|
|
frameworks: ['jasmine'],
|
|
files: [
|
|
'test/helpers/**/*.js',
|
|
'test/spec/components/**/*.js'
|
|
],
|
|
preprocessors: {
|
|
'test/spec/components/**/*.js': ['webpack']
|
|
},
|
|
webpack: {
|
|
cache: true,
|
|
module: {
|
|
loaders: [{
|
|
test: /\.css$/,
|
|
loader: 'style!css'
|
|
}, {
|
|
test: /\.gif/,
|
|
loader: 'url-loader?limit=10000&minetype=image/gif'
|
|
}, {
|
|
test: /\.jpg/,
|
|
loader: 'url-loader?limit=10000&minetype=image/jpg'
|
|
}, {
|
|
test: /\.png/,
|
|
loader: 'url-loader?limit=10000&minetype=image/png'
|
|
}, {
|
|
test: /\.js$/,
|
|
loader: 'jsx-loader'
|
|
}]
|
|
}
|
|
},
|
|
webpackServer: {
|
|
stats: {
|
|
colors: true
|
|
}
|
|
},
|
|
exclude: [],
|
|
port: 8080,
|
|
logLevel: config.LOG_INFO,
|
|
colors: true,
|
|
autoWatch: false,
|
|
// Start these browsers, currently available:
|
|
// - Chrome
|
|
// - ChromeCanary
|
|
// - Firefox
|
|
// - Opera
|
|
// - Safari (only Mac)
|
|
// - PhantomJS
|
|
// - IE (only Windows)
|
|
browsers: ['PhantomJS'],
|
|
reporters: ['progress'],
|
|
captureTimeout: 60000,
|
|
singleRun: true
|
|
});
|
|
};
|