jonkemp / gulp-useref

Parse build blocks in HTML files to replace references to non-optimized scripts or stylesheets.
MIT License
705 stars 93 forks source link

Feature Request: Automatically find the asset files to concat #267

Closed nautatva closed 2 years ago

nautatva commented 2 years ago

Instead of needing to write build:css css/combined.css, there should be a option to parse the CSS/JS from the files without any manual changes. An option to get the concatenated file name and the types to be concatenated.

<html>
<head>
    <!-- build:css css/combined.css --> <------------------------------- don't want this
    <link href="css/one.css" rel="stylesheet">
    <link href="css/two.css" rel="stylesheet">
    <!-- endbuild -->
</head>
<body>
    <!-- build:js scripts/combined.js -->  <---------------------------- don't want this
    <script type="text/javascript" src="scripts/one.js"></script>
    <script type="text/javascript" src="scripts/two.js"></script>
    <!-- endbuild -->
</body>
</html>
jonkemp commented 2 years ago

Not interested in implementing this. Thanks.