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

not work with gulp watch #259

Open
TangMonk opened this issue Sep 5, 2019 · 1 comment
Open

not work with gulp watch #259

TangMonk opened this issue Sep 5, 2019 · 1 comment

Comments

@TangMonk
Copy link

TangMonk commented Sep 5, 2019

function js_files() {
    return src('./assets/scripts/*.js')
        .pipe(dest('./public/scripts'))
        .pipe(rev())
        .pipe(dest('./public/scripts'))
        .pipe(rename({
            dirname: "/scripts/"
        }))
        .pipe(rev.manifest('public/rev-manifest.json',{
            merge: true,
            base: './public'
        }))
        .pipe(dest('./public/'))
}

function defaultTask(cb) {
    watch('./assets/scripts/*.js', {ignoreInitial: false}, js_files)
}

exports.default = defaultTask;

It manifest only changes when first run npx gulp, then it not changed whenever I change my source js file.

Please look at the following screen record(the gif the bit large, please patient):

imgur

@benbieler
Copy link
Contributor

Still an issue?

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

2 participants