mirror of
https://github.com/minio/minio.git
synced 2025-11-12 14:51:36 -05:00
miniobrowser: Bring Minio browser source into minio repo. (#3617)
This commit is contained in:
committed by
Harshavardhana
parent
8489f22fe2
commit
cead24b0f7
40
browser/karma.conf.js
Normal file
40
browser/karma.conf.js
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user