Skip to content

Commit

Permalink
fix: add cache/minification support to expression
Browse files Browse the repository at this point in the history
Previously the ClientLibs expression did not factor in cache/minification.
  • Loading branch information
cshawaus committed Jun 22, 2024
1 parent fdf4306 commit 6e858e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function configureAemProxy(aemUrl: string, options: PluginOptions) {
const clientlibsExpression = new RegExp(
`<(?:script|link).*(?:src|href)="${
options.clientlibsExpression ?? options.publicPath
}.(?:css|js)"(([\\w+])=['"]([^'"]*)['"][^>]*>|[^>]*></script>|>)`,
}.(?:(lc-\\w{32}-lc(.min)?)|((min.)?ACSHASH\\w{32})|(\\w{32}(.min)?))?.?(?:css|js)"(([\\w+])=['"]([^'"]*)['"][^>]*>|[^>]*(?:></script>|>))`,
'g',
)

Expand Down

0 comments on commit 6e858e9

Please sign in to comment.