grunt-inline
grunt-inline copied to clipboard
Bad matching
Hello, I have a html like this one :
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="main.css?__inline=true">
<script type="text/javascript">
</script>
<meta charset="utf-8">
</head>
<body>
<div id="button_lock" onClick="lock()" style="display: none"><img src="assets/lock.png?__inline=true" alt="locked"/></div>
<div id="button_locked" onClick="unlock()"><img src="assets/locked.png?__inline=true" alt="locked"/></div>
<script type="text/javascript" src="dist.js?__inline=true"></script>
</body>
</html>
And it seems that the script regex matches from the first at the end of the body, and src from the img is used, so I get the image contents (not base64'ed) inside a
@konfiot I tried the latest version of grunt-inline, and the problem mentioned above didn't appear.
Can you provide more information, like what version you used. It would be better if you provide a test case, that is, pack up the minimum files needed, then I can run the case in my computer, so that I can find out what the problem is :)