Skip to content

Commit

Permalink
feat: asset type add apng (#13294)
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed Jun 6, 2023
1 parent a3ff501 commit a11b6f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vite/client.d.ts
Expand Up @@ -98,6 +98,10 @@ declare module '*.sss' {
// see `src/node/constants.ts`

// images
declare module '*.apng' {
const src: string
export default src
}
declare module '*.png' {
const src: string
export default src
Expand Down
1 change: 1 addition & 0 deletions packages/vite/src/node/constants.ts
Expand Up @@ -96,6 +96,7 @@ export const CLIENT_DIR = path.dirname(CLIENT_ENTRY)
// looked up by mrmime.
export const KNOWN_ASSET_TYPES = [
// images
'apng',
'png',
'jpe?g',
'jfif',
Expand Down

0 comments on commit a11b6f6

Please sign in to comment.