Closed jellisii closed 6 years ago
Your use of panini.refresh()
is correct, but you need to also re-run your build
task again so the pages actually get built. Look at how it's done in the ZURB Template: https://github.com/zurb/foundation-zurb-template/blob/master/gulpfile.babel.js#L154
This is definitely confusing, and it's something I'm hoping to address with version 2.0.
Running build
does indeed fix the problem. Thank you for that guidance. :)
No problem! :) Thanks for using Panini.
My directory structure:
gulpfile.js
Whenever I save changes to
src/layouts/default.html
, the watch task gets triggered, which in turn triggerspanini.refresh()
, but changes made insrc/layouts/default.html
aren't being reflected in the build folder. Reloading the browser does not rectify the problem as_build/index.html
doesn't seem to have the changes made tosrc/layouts/default.html
. The only way I can successfully get those changes to reflect is by restarting gulp.I'm not using the template.
yarn info panini
reports version 2.0.0-alpha.2.