Skip to content

Commit

Permalink
fix: set resource type for css (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Aug 4, 2022
1 parent 17ed334 commit 2016345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function normalizeViteManifest (manifest: ViteManifest | Manifest): Manif
_manifest[file] = { ...parseResource(chunk.file || file), ...chunk }
for (const item of chunk.css || []) {
if (!_manifest[item]) {
_manifest[item] = { file: item, ...parseResource(item) }
_manifest[item] = { file: item, resourceType: 'style', ...parseResource(item) }
}
}
for (const item of chunk.assets || []) {
Expand Down

0 comments on commit 2016345

Please sign in to comment.