Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function compileHTML() {
console.log('---------------COMPILING HTML WITH PANINI---------------');
panini.refresh();
return src('src/pages/**/*.html')
.pipe(panini({
root: 'src/pages/',
layouts: 'src/layouts/',
// pageLayouts: {
// // All pages inside src/pages/blog will use the blog.html layout
// 'blog': 'blog'
// }
partials: 'src/partials/',
helpers: 'src/helpers/',
data: 'src/data/'
}))
.pipe(dest('dist'))
.pipe(browserSync.stream());
}
function resetPages(done) {
console.log('---------------CLEARING PANINI CACHE---------------');
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}
function resetPages(done) {
panini.refresh();
done();
}