2015-06-15 15:21:19 +02:00
|
|
|
module.exports = [
|
2016-12-16 15:04:17 +01:00
|
|
|
{
|
|
|
|
test: /\.jsx?$/,
|
|
|
|
exclude: /(node_modules|bower_components|public)/,
|
|
|
|
loaders: ['react-hot-loader/webpack']
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.jsx?$/,
|
|
|
|
exclude: /(node_modules|bower_components|public)/,
|
|
|
|
loader: 'babel',
|
|
|
|
query: {
|
|
|
|
presets: ['es2015', 'react'],
|
|
|
|
plugins: ['transform-runtime', 'transform-decorators-legacy', 'transform-class-properties'],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2016-12-31 10:34:32 +01:00
|
|
|
test: /\.(eot|ttf|woff|woff2)$/,
|
2016-12-16 15:04:17 +01:00
|
|
|
loader: 'file?name=fonts/[name].[ext]'
|
|
|
|
},
|
|
|
|
{
|
2016-12-31 10:34:32 +01:00
|
|
|
test: /\.ico$/,
|
|
|
|
loader: 'file?name=[name].[ext]'
|
2016-12-16 15:04:17 +01:00
|
|
|
},
|
|
|
|
{
|
2016-12-31 10:34:32 +01:00
|
|
|
test: /\.(svg|gif|jpg|png)$/,
|
|
|
|
loader: 'file?name=img/[name].[ext]'
|
2016-12-16 15:04:17 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.json$/,
|
|
|
|
loader: 'json-loader'
|
|
|
|
},
|
2016-12-22 18:19:34 +01:00
|
|
|
{
|
|
|
|
test: /[\/\\](node_modules|global|src)[\/\\].*\.css$/,
|
|
|
|
loaders: [
|
|
|
|
'style?sourceMap',
|
|
|
|
'css'
|
|
|
|
]
|
2016-12-16 15:04:17 +01:00
|
|
|
}
|
2015-06-15 15:21:19 +02:00
|
|
|
];
|