Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: ?html-proxy with trailing = added by some servers (#7093)
  • Loading branch information
JuanM04 committed Feb 26, 2022
1 parent c703a33 commit 5818ac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/html.ts
Expand Up @@ -41,7 +41,7 @@ interface ScriptAssetsUrl {
url: string
}

const htmlProxyRE = /\?html-proxy[&inline\-css]*&index=(\d+)\.(js|css)$/
const htmlProxyRE = /\?html-proxy=?[&inline\-css]*&index=(\d+)\.(js|css)$/
const inlineCSSRE = /__VITE_INLINE_CSS__([^_]+_\d+)__/g
const inlineImportRE = /\bimport\s*\(("[^"]*"|'[^']*')\)/g
export const isHTMLProxy = (id: string): boolean => htmlProxyRE.test(id)
Expand Down

0 comments on commit 5818ac9

Please sign in to comment.