gulp-html-replace icon indicating copy to clipboard operation
gulp-html-replace copied to clipboard

Replace build blocks in HTML. Like useref but done right.

Results 19 gulp-html-replace issues
Sort by recently updated
recently updated
newest added

With gulp-userref I can concat script files into one, minify the result and replace the script tags with the new minified script. I can't see how that is possible in...

Hi, I'm trying to add a way to customize "build" and "endbuild" tags inside the parser regexp, so I moved the regexp inside the `Parser` constructor and converted the regexp...

Not as much of an issue as a feature request but can it check if the file is html and not attempt the operation if not.

This is my first pull request. Hopefully, everything is in line. This change would allow the use of the file's directory name in replacements. It would be helpful for multi-entry...

Image i have this index.html ``` ``` it would be nice if i can have a task to specify to comment out the section of build dev and uncomment the...

In Jetbrains IDE WebStorm, replacing content and keeping the blocks seems to add a newline under the blocks when the content is changed. ``` gulp.task('prodBaseUrl', function(){ gulp.src('index.html') .pipe(htmlReplace( { base:{...

To support parsing useref blocks ie. `` regex could become: `var regex = /(\n?)([ \t]*)()\n?([\s\S]*?)\n?()\n?/ig;` I need html replacement to work aside useref.

I have the following template: ```html (function (h, o, t, j, a, r) { h.hj = h.hj || function () { (h.hj.q = h.hj.q || []).push(arguments); }; h._hjSettings = {...