dev: hot reload only main css, (not fonts)
This commit is contained in:
parent
a83ff2b246
commit
07529b9753
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
|||
<link rel="preload" href="fonts/font-awesome.min.css"/>
|
||||
<link rel="preload" href="fonts/droid-sans.css"/>
|
||||
<link rel="preload" href="styles.css"/>
|
||||
<link rel="stylesheet" href="styles.css"/>
|
||||
<link rel="stylesheet" href="styles.css" hot-reload/>
|
||||
<link rel="stylesheet" href="fonts/font-awesome.min.css"/>
|
||||
<link rel="stylesheet" href="fonts/droid-sans.css"/>
|
||||
<script src="scripts.js"></script>
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ var callbacks = module.exports = {
|
|||
|
||||
reloadCss: function(){
|
||||
var queryString = '?reload=' + new Date().getTime();
|
||||
$('link[rel="stylesheet"]').each(function () {
|
||||
$('link[rel="stylesheet"][hot-reload]').each(function () {
|
||||
this.href = this.href.replace(/\?.*|$/, queryString);
|
||||
});
|
||||
setTimeout(()=>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue