mirror of
https://github.com/h5bp/html5-boilerplate.git
synced 2026-01-10 07:08:02 -05:00
updated the regex pattern to only look for href=<folder path>/style.css, so it doesnt matter where href is present in the link. Fixes #927
This commit is contained in:
@@ -655,8 +655,8 @@
|
||||
|
||||
<echo message="Updating the HTML with the new css filename: ${style.css}"/>
|
||||
|
||||
<replaceregexp match="<link rel=['"]?stylesheet['"]?\s+href=['"]?(.*)/${file.root.stylesheet}(?:\?.*)?['"]?\s*/?>"
|
||||
replace="<link rel='stylesheet' href='\1/${css.sha}.css'>" flags="m">
|
||||
<replaceregexp match="<link(.+)href=['"]?(.*)/${file.root.stylesheet}(?:\?.*)?['"\s]?(.*/?>)"
|
||||
replace="<link\1href='\2/${css.sha}.css'\3" flags="m">
|
||||
<fileset dir="${dir.intermediate}" includes="${page-files}"/>
|
||||
</replaceregexp>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user