feat(builder, webpack): allow loading webp images as assets (#3827)

This commit is contained in:
Indrek Ardel 2018-09-01 07:26:10 +03:00 committed by Pooya Parsa
parent 40aae73d5b
commit 674e9ed545

View File

@ -194,7 +194,7 @@ export default class WebpackBaseConfig {
oneOf: perfLoader.poolOneOf('css', styleLoader.apply('stylus', 'stylus-loader')) oneOf: perfLoader.poolOneOf('css', styleLoader.apply('stylus', 'stylus-loader'))
}, },
{ {
test: /\.(png|jpe?g|gif|svg)$/, test: /\.(png|jpe?g|gif|svg|webp)$/,
use: perfLoader.pool('assets', { use: perfLoader.pool('assets', {
loader: 'url-loader', loader: 'url-loader',
options: { options: {