Skip to content

Commit

Permalink
Remove extra mp4 and add TypeScript decs
Browse files Browse the repository at this point in the history
  • Loading branch information
phocks committed Jan 26, 2024
1 parent 9833485 commit 487feb5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function createWebpackConfig({ isModernJS } = {}) {
}
},
{
test: /\.(jpg|png|gif|mp4|m4v|flv|mp3|wav|m4a|eot|ttf|woff|woff2|mp4|webm|webp|avif)$/,
test: /\.(jpg|png|gif|mp4|m4v|flv|mp3|wav|m4a|eot|ttf|woff|woff2|webm|webp|avif)$/,
type: 'asset'
},
{
Expand Down
15 changes: 15 additions & 0 deletions ts/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,18 @@ declare module '*.html' {
const html: string;
export default html;
}

declare module '*.webp' {
const webp: string;
export default webp;
}

declare module '*.webm' {
const webm: string;
export default webm;
}

declare module '*.avif' {
const avif: string;
export default avif;
}

0 comments on commit 487feb5

Please sign in to comment.