usemin
Version:
Replaces references to non-optimized scripts or stylesheets into a set of HTML files (or any templates/views).
32 lines (26 loc) • 776 B
HTML
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!-- build:css css/main.css -->
<link rel="stylesheet" href="css/foo.css">
<link rel="stylesheet" href="css/bar.css">
<!-- endbuild -->
</head>
<body>
<!-- build:js js/main.js -->
<script src="js/foo.js"></script>
<script src="js/bar.js"></script>
<!-- endbuild -->
<!-- build:js js/main.js -->
<script defer async src="js/foo.js"></script>
<script defer async src="js/bar.js"></script>
<!-- endbuild -->
<!-- build:remove -->
<script src="js/foo.js"></script>
<script src="js/bar.js"></script>
<!-- endbuild -->
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
</body>
</html>