Posts

Featured post

node.js - Gulp is not updating my static generated pages with Assemble -

i have working modular gulpfile building static pages assemble. far good. when run watch job , change data in json file watcher running assemble again, building pages without new data. handlebars partials , other things working exept data files. when quit watch task , run whole assemble task again, data is updated, assemble task works think. this assemble task. module.exports = function(gulp, plugins, config, assemble, browsersync) { var error = require("./error.js"); var clean = require("./clean-html.js"); //var production = require("./distribution.js"); var app = assemble(); gulp.task('load', function() { app.partials(config.source.assemblesrc.partials); app.layouts(config.source.assemblesrc.layouts); app.data(config.source.assemblesrc.data); }); gulp.task('assemble', ['load'], function() { return app.src(config.source.assemblesrc.pages) .pipe(plugins.plumber({ errorhandler: error ...