Skip to content

Commit

Permalink
fix(build): uRI decode slipt chunks characters
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandg7 committed Dec 15, 2020
1 parent 0a2409d commit f7026b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
<% }); %>

{%- if <%= conditions.join(' or ') %> -%}
<script type="text/javascript" src="<%= src %>" defer></script>
<script type="text/javascript" src="<%= decodeURIComponent(src) %>" defer></script>
{%- else -%}
<link rel="prefetch" href="<%= src %>" as="script">
<link rel="prefetch" href="<%= decodeURIComponent(src) %>" as="script">
{%- endif -%}

<% } else if (typeof htmlWebpackPlugin.options.liquidTemplates[templateFull] !== 'undefined') { %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
<% } %>
<% }); %>
{%- if <%= conditions.join(' or ') %> -%}
<link type="text/css" href="<%= src %>" rel="stylesheet">
<link type="text/css" href="<%= decodeURIComponent(src) %>" rel="stylesheet">
{%- else -%}
<link rel="prefetch" href="<%= src %>" as="style">
<link rel="prefetch" href="<%= decodeURIComponent(src) %>" as="style">
{%- endif -%}
<% } else { %>
<link type="text/css" href="<%= src %>" rel="stylesheet">
Expand Down

0 comments on commit f7026b2

Please sign in to comment.