gulp-html-replace
gulp-html-replace copied to clipboard
Replace build blocks in HTML. Like useref but done right.
I’m using Thymeleaf in a Spring MVC application and the parser errors out when tags aren’t closed.
Hello is it possible to define the root folder with resolvePaths ? My problem is that my root folder is a sub level to my gulpfile.js file Exemple : |-root...
Added a 'useCRLF' option to prevent a new linefeed appearing every time the gulp task is run on Windows machines. Resolves #42
Hi, Is it possible to just replace the file name instead replace the entire path? I have issue that the path is dynamically added. Example: ``` ``` Is there a...
Is there any way to use jade comments (double forward slashes) instead of HTML comments to denote build blocks? So instead of ``` ``` can I use ``` //build:js //endbuild...
This might not be the right place to ask this.., but my `html blocks` aren't keeping the correct order when running my build task. Do you know the best way...
I use gulp-html-replace in a small static page. It consists of 7 different pages with a bootstrap navigation. I want to set the CSS class "active" for different HTML pages...
Thanks for the clever tool! I'm using [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) to generate a manifest file: ```json { "app.css": "app.bundle.8974f7041fb37318bbde0e39d3c9e2d1.css", "app.css.map": "app.bundle.8974f7041fb37318bbde0e39d3c9e2d1.css.map", "app.js": "app.bundle.fa373866e4cc4051adb3.js", "app.js.map": "app.bundle.fa373866e4cc4051adb3.js.map" } ``` to pipe into gulp-html-replace like...
## Example ```html ```
Would be awesome to have the option to add Clousre for manipulating the data before replaceing it completely. ```javascript htmlreplace({'replace': 'test'}, function(data) { // data.manipulate(); }) ```