From 674e9ed54598959103d92b593e8eb3e3c0f16727 Mon Sep 17 00:00:00 2001 From: Indrek Ardel Date: Sat, 1 Sep 2018 07:26:10 +0300 Subject: [PATCH] feat(builder, webpack): allow loading webp images as assets (#3827) --- lib/builder/webpack/base.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/webpack/base.js b/lib/builder/webpack/base.js index 877a5aa9e3..3106b30d65 100644 --- a/lib/builder/webpack/base.js +++ b/lib/builder/webpack/base.js @@ -194,7 +194,7 @@ export default class WebpackBaseConfig { 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', { loader: 'url-loader', options: {