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         })) //added proper error handling         .pipe(app.renderfile())         .pipe(plugins.rename(function(path) {             path.extname = ".html" // rename html         }))         .pipe(plugins.if(production, gulp.dest(config.dist.html), gulp.dest(config.temp.html)))         .pipe(browsersync.reload({             stream: true         })); // browser reload   }); 

};

thanx in advance!


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo