Skip to content

Commit

Permalink
feat(builder, webpack): allow loading webp images as assets (nuxt#3827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingramz authored and pi0 committed Sep 1, 2018
1 parent 40aae73 commit 674e9ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/builder/webpack/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 674e9ed

Please sign in to comment.