gulp: how to replace the link to code and inserting code from file

43 Views Asked by At

how to replace the link in the index.html:

<link async rel="stylesheet" href="css/styles.min.css">

to code from styles.min.css file

<styles>
...
</styles>

which plug-in? Thnx!

1

There are 1 best solutions below

0
On

Use gulp-wiredep if they are bower packages or gulp-inject if they are your own css and js.