Answer the question
In order to leave comments, you need to log in
Error when starting a project on gulp, what to do?
gulpFIle(hbs):
gulp.task("hbs", () => {
return gulp.src("src/views/**/*.hbs")
.pipe(webpack({
mode: 'development',
module: {
rules: [
{
test: /\.hbs$/,
use: ["handlebars-loader"]
}
]
}
}))
.pipe(gulp.dest('dist/views'))
.pipe(browserSync.stream());
});
{{> head }}
<body>
{{> header }}
{{{ body }}}
{{> down }}
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question