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

handlebars partials not updating #67

Open
jensbambauer opened this issue Feb 28, 2019 · 1 comment
Open

handlebars partials not updating #67

jensbambauer opened this issue Feb 28, 2019 · 1 comment

Comments

@jensbambauer
Copy link

Changing something in my html file works fine. But when changing the hbpartial.hbs partial the changes are not visible until I edit the html file or restart gulp.

function compileHandlebars() {
    return gulp
        .src('./*.html')
        .pipe(
            hb({ debug: true, bustCache: true })
                .partials('./src/components/hbpartial/hbpartial.hbs'),
        )
        .pipe(gulp.dest(path.resolve(__dirname, paths.tmp)));
}
gulp.watch(
        [`./${paths.src}/**/*.hbs`, './*.html'],
        gulp.series(compileHandlebars, reload),
    );

I'm using gulp 4 and gulp-hb 8 Any ideas?

@jensbambauer jensbambauer changed the title handlebar partials are getting cached handlebar partials not updating Feb 28, 2019
@jensbambauer jensbambauer changed the title handlebar partials not updating handlebars partials not updating Feb 28, 2019
@shannonmoeller
Copy link
Owner

Sorry for the delay in responding here. I haven't had much time for my open source projects lately. This issue is super weird because bustCache: true is supposed to fix this exact issue. What version of Node are you using. I wonder if the underlying require api has changed.

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