add webp support

This commit is contained in:
MathieuG-P
2022-06-04 22:19:46 +02:00
parent 763607c521
commit 2b293b40d3
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -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',
},
],
+1 -1
View File
@@ -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',
},
],
+5
View File
@@ -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;