grunt-inline icon indicating copy to clipboard operation
grunt-inline copied to clipboard

Bad matching

Open konfiot opened this issue 10 years ago • 1 comments

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 avatar May 30 '14 19:05 konfiot

@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 :)

chyingp avatar Jun 15 '14 13:06 chyingp