Support statics

This commit is contained in:
Dan Abramov
2016-07-15 22:21:07 +01:00
committed by Christopher Chedeau
parent bac207bde5
commit d0c25cb725
5 changed files with 35 additions and 6 deletions

View File

@@ -24,15 +24,27 @@ module.exports = {
}
],
loaders: [
{
test: /\.js$/,
include: path.resolve(__dirname, 'src'),
loader: 'babel'
},
{
test: /\.css$/,
include: path.resolve(__dirname, 'src'),
loader: 'style!css!postcss'
},
{
test: /\.js$/,
include: path.resolve(__dirname, 'src'),
loader: 'babel'
test: /\.json$/,
loader: 'json'
},
{
test: /\.(jpg|png|gif|eot|svg|ttf|woff|woff2)$/,
loader: 'file',
},
{
test: /\.(mp4|webm)$/,
loader: 'url?limit=10000'
}
]
},