Selects DOM nodes from Node.js streams and packs selected code into separated streams.
gulp-query-selector as a development dependency:
npm install --save-dev gulp-query-selector
Then, add it to your
var querySelector = ;var inject = ;gulp;
Above example is pretty complicated, but it's the simplest one I've been able to come up with. It
selects contents of
<body> elements from all HTML files found in
pages forlder, and then injects
these contents to another HTML code using gulp-inject plugin.
Copyright © 2015 - 2019 Maciej Chałapuk. Released under MIT License.