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

Infinite replace when watching files #2

Open
javisperez opened this issue Dec 31, 2016 · 7 comments
Open

Infinite replace when watching files #2

javisperez opened this issue Dec 31, 2016 · 7 comments
Assignees
Labels

Comments

@javisperez
Copy link

Hi! great package, thanks for it! :)

I'm having an issue when i make "gulp watch" with elixir, it just keeps replacing the file the whole time, am i maybe using it wrong or is it actually a bug?

Here's how im using it:

mix
    // Copy html
    .copy('./src/index.html', 'public/index.html')

    // Replace the cache-busting hash
    .replace('public/index.html', [
        ['${HASH}', (new Date()).getTime()]
    ])

of course, i have a new more rules but these two are the significant one.

Thank you!

@javisperez
Copy link
Author

Oh, just in case, here's how the output looks like

image

@osiux
Copy link
Owner

osiux commented Dec 31, 2016

Hey @javisperez , thanks for raising an issue! This is probably because I haven't updated it to work with latest elixir versions and the api has changed a lot. I'll see if I can tackle this in the nex days :)

@osiux osiux self-assigned this Dec 31, 2016
@osiux osiux added the bug label Dec 31, 2016
@javisperez
Copy link
Author

Hey thx! i would appreciate this, this is a great plugin :)

@javisperez
Copy link
Author

Hey, did you got the chance to check this? @osiux

@osiux
Copy link
Owner

osiux commented Feb 18, 2017

@javisperez not yet :( stumbled upon some bug in the code and haven't had the time to fix it. It had something to do with watching files, so maybe I'll just drop that part andd leave everything else.

@javisperez
Copy link
Author

Its ok, i was just bumping this, in case was done and forgot to release it, i'll be waiting, no pro :)

@duckzland
Copy link

same issue here, seems it can be fixed by removing the : .watch(file);

on laravel-elixir-replace\index.js line 24

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

No branches or pull requests

3 participants