Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having a directory with the same name as the file breaks the replacement #16

Open
tomasAlabes opened this issue May 7, 2016 · 0 comments

Comments

@tomasAlabes
Copy link

Example:

bust: {
    replace: ['my.html'],
    replacement: 'jquery.js',
    file: 'somewhere/jquery.js'
}

The html

<script src="jquery/jquery.js"></script>

is being transformed to:

<script src="jquery-HASH.js"></script>
<!-- instead of -->
<script src="jquery/jquery-HASH.js"></script>

FYI, I'm not really trying to cache-bust jquery, I just chose it as an example.
I saw in the code that the extension is pretty coupled to everything else, so it wasn't straight forward to fix it.

Thanks for plugin by the way ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant