You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
It would be very useful to let developers specify their own href|src patterns for useminPrepare.
Currently the pattern is /(href|src)=["']([^'"]+)["']/ (https://github.com/yeoman/grunt-usemin/blob/master/lib/file.js#L102) but what if I want to use this plugin in a Java dev environment where I call my assets like this: <script type="text/javascript" src="<spring:url value="/resources/bower_components/jquery/dist/jquery.js" />"></script>?
Changing the line by the following code does the trick:
Hi,
It would be very useful to let developers specify their own href|src patterns for useminPrepare.
Currently the pattern is
/(href|src)=["']([^'"]+)["']/
(https://github.com/yeoman/grunt-usemin/blob/master/lib/file.js#L102) but what if I want to use this plugin in a Java dev environment where I call my assets like this:<script type="text/javascript" src="<spring:url value="/resources/bower_components/jquery/dist/jquery.js" />"></script>
?Changing the line by the following code does the trick:
That's why I suggest adding an optional parameter for useminPrepare which would let the user define the pattern to look for. Do you agree?
The text was updated successfully, but these errors were encountered: