java - Maven: How do you update html file to use new minified & concatenated JS & CSS file? -
i have lot of css & js files in html, , i'm using yui compressor minify & concat of these 1x css , 1x js.
is there way maven go html file, remove 20+ lines of & includes , replace 1 minified ?
a option use grunt replace references within html file. there grunt plugin this: grunt-usemin.
for example:
<!-- build:js js/app.minjs --> <script src="js/controllers/thing-controller.js"></script> <script src="js/models/thing-model.js"></script> <script src="js/views/thing-view.js"></script> <!-- endbuild --> the output file:
<script src="js/app.min.js"></script>
Comments
Post a Comment