how to use gulp, to automatically convert < link href="./a.scss" > in html to < link href="./a.css" >
gulp version: 3.9.1
main plug-ins used:
"gulp-sass": "^3.1.0",
"gulp-rev-append": "^0.1.8",
related codes
html under src
<link rel="stylesheet" href="./css/test2.scss?rev=@@hash">
generated html
<link rel="stylesheet" href="./css/test2.scss?rev=999cc1e1f3ee1a3ede69ca120243e8bb">
in fact, the result I expect should be
<link rel="stylesheet" href="./css/test2.css?rev=999cc1e1f3ee1a3ede69ca120243e8bb">
In link, if css can find the correct file after processing,
but directly introduce .css into the link of the source html, then the hash value addition function is invalid and will be output as is