Added support for webp images in #442 (#458)

This commit is contained in:
Felipe Moyano
2016-08-23 10:13:13 -05:00
committed by Dan Abramov
parent 2b5eb82c11
commit dcdcab0ecc
5 changed files with 6 additions and 6 deletions

View File

@@ -126,7 +126,7 @@ module.exports = {
// When you `import` an asset, you get its (virtual) filename.
// In production, they would get copied to the `build` folder.
{
test: /\.(ico|jpg|png|gif|eot|otf|svg|ttf|woff|woff2)(\?.*)?$/,
test: /\.(ico|jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)(\?.*)?$/,
include: [paths.appSrc, paths.appNodeModules],
exclude: /\/favicon.ico$/,
loader: 'file',