mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25:12 +00:00
feat(builder, webpack): allow loading webp images as assets (#3827)
This commit is contained in:
parent
40aae73d5b
commit
674e9ed545
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user