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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -