I'm using grunt to build a dist and for some reason usemin WON'T remove the build statements. I'm not getting any errors during the build and some statements get removed and others don't. The files get minified, but they don't get linked.
Example dist code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<!-- build:css styles/vendor.css -->
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<!-- endbower -->
<!-- endbuild -->
<script src="scripts/2b96018a.cv.js"></script>
</head>
<body>
</body>
</html>
Original:
<html lang="en">
<head>
<meta charset="utf-8" />
<title></title>
<!-- build:css styles/vendor.css -->
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<!-- endbower -->
<!-- endbuild -->
<!-- build:js scripts/cv.js -->
<script src="scripts/app.js"></script>
<!-- endbuild -->
</head>
<body>
</body>
</html>
I've got the exact same problem. I noticed that removing the bower/endbower statments made it work, but you loose the benefit of bower-install. I'm still working on it
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With