Skip to content

Commit

Permalink
refactor: only ignore error if is ENOENT
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 5, 2021
1 parent 98c9b32 commit 9c819b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite/src/node/plugins/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ export function buildHtmlPlugin(config: ResolvedConfig): Plugin {
} catch (e) {
// #1885 preload may be pointing to urls that do not exist
// locally on disk
if (e.code !== 'ENOENT') {
throw e
}
}
}

Expand Down

0 comments on commit 9c819b9

Please sign in to comment.