Skip to content

Commit

Permalink
fix: add direct query to html-proxy css
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed May 10, 2022
1 parent 85cab70 commit 1285ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/middlewares/indexHtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const devHtmlHook: IndexHtmlTransformHook = async (

await Promise.all(
styleUrl.map(async ({ start, end, code }, index) => {
const url = `${proxyModulePath}?html-proxy&index=${index}.css`
const url = `${proxyModulePath}?html-proxy&direct&index=${index}.css`

// ensure module in graph after successful load
const mod = await moduleGraph.ensureEntryFromUrl(url, false)
Expand Down

0 comments on commit 1285ff5

Please sign in to comment.