mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
add webp support
This commit is contained in:
@@ -111,7 +111,7 @@ const configuration: webpack.Configuration = {
|
||||
},
|
||||
// Images
|
||||
{
|
||||
test: /\.(png|svg|jpg|jpeg|gif|mp4)$/i,
|
||||
test: /\.(png|svg|jpg|jpeg|gif|mp4|webp)$/i,
|
||||
type: 'asset/resource',
|
||||
},
|
||||
],
|
||||
|
||||
@@ -93,7 +93,7 @@ const configuration: webpack.Configuration = {
|
||||
},
|
||||
// Images
|
||||
{
|
||||
test: /\.(png|svg|jpg|jpeg|gif|mp4)$/i,
|
||||
test: /\.(png|svg|jpg|jpeg|gif|mp4|webp)$/i,
|
||||
type: 'asset/resource',
|
||||
},
|
||||
],
|
||||
|
||||
Vendored
+5
@@ -10,6 +10,11 @@ declare module '*.png' {
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.webp' {
|
||||
const content: string;
|
||||
export default content;
|
||||
}
|
||||
|
||||
declare module '*.mp4' {
|
||||
const content: string;
|
||||
export default content;
|
||||
|
||||
Reference in New Issue
Block a user