mirror of
https://github.com/minio/minio.git
synced 2025-11-12 06:50:17 -05:00
Upgrade webpack from v1 to v3 (#5448)
- Changed webpack.config.js and webpack.production.config.js according to the migration guidelines - Updated packages that had unmet peer dependencies after the webpack update Fixes #5398
This commit is contained in:
committed by
Harshavardhana
parent
9cc77e51f5
commit
0da377f3e9
@@ -30,25 +30,36 @@ var exports = {
|
||||
publicPath: '/minio/'
|
||||
},
|
||||
module: {
|
||||
loaders: [{
|
||||
rules: [{
|
||||
test: /\.js$/,
|
||||
exclude: /(node_modules|bower_components)/,
|
||||
loader: 'babel',
|
||||
query: {
|
||||
presets: ['react', 'es2015']
|
||||
}
|
||||
use: [{
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['react', 'es2015']
|
||||
}
|
||||
}]
|
||||
}, {
|
||||
test: /\.less$/,
|
||||
loader: 'style!css!less'
|
||||
use: [{
|
||||
loader: 'style-loader'
|
||||
}, {
|
||||
loader: 'css-loader'
|
||||
}, {
|
||||
loader: 'less-loader'
|
||||
}]
|
||||
}, {
|
||||
test: /\.json$/,
|
||||
loader: 'json-loader'
|
||||
},{
|
||||
test: /\.css$/,
|
||||
loader: 'style!css'
|
||||
use: [{
|
||||
loader: 'style-loader'
|
||||
}, {
|
||||
loader: 'css-loader'
|
||||
}]
|
||||
}, {
|
||||
test: /\.(eot|woff|woff2|ttf|svg|png)/,
|
||||
loader: 'url'
|
||||
use: [{
|
||||
loader: 'url-loader'
|
||||
}]
|
||||
}]
|
||||
},
|
||||
node:{
|
||||
@@ -100,7 +111,6 @@ var exports = {
|
||||
|
||||
if (process.env.NODE_ENV === 'dev') {
|
||||
exports.entry = [
|
||||
'webpack/hot/dev-server',
|
||||
'webpack-dev-server/client?http://localhost:8080',
|
||||
path.resolve(__dirname, 'app/index.js')
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user