gulp-htmlbuild icon indicating copy to clipboard operation
gulp-htmlbuild copied to clipboard

Added inline script pre-processor

Open jonsamwell opened this issue 10 years ago • 1 comments

jonsamwell avatar Feb 27 '15 01:02 jonsamwell

Normally this should just work:

<!-- htmlbuild:inline /assets/js/configuration.js -->
<!-- endbuild -->
inline: function (block) {
  fs.createReadStream(block.args[0], {encoding: 'utf-8'})
    .pipe(block);
}

Janpot avatar Feb 27 '15 04:02 Janpot