We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@VFK
I have two html files that needs to be processed with similar blocks.
My gulpfile task:
//process view files - fix paths gulp.task('process-view', function () { return gulp.src([ './index.html', './admin.html' ]) .pipe(htmlreplace({ css: 'assets/style.min.css', js: { src: [['js/context.min.js', 'js/require.js']], tpl: '<script data-main="%s" src="%s"></script>' } })) .pipe(gulp.dest('./dist/views')); });
My HTML(s) all look like:
<!DOCTYPE html> <html> <head> <title></title> <!-- build:css --> <link href="../assets/font-awesome.css" rel="stylesheet" /> <link href="../assets/pnotify.custom.min.css" rel="stylesheet" /> <!-- endbuild --> <!-- build:js --> <script src="../lib/jquery-2.1.3.min.js"></script> <script data-main="../js/bootstrapper" src="../lib/require.js"></script> <!-- endbuild --> </head> <body> </body> </html>
The problem lies with the second source file (./admin.html). The output (NOTE: line-breaks were removed):
./admin.html
<!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" href="assets/style.min.css"> <script data-main="<script data-main="%s" src="%s"></script>" src="js/context.min.js"></script> js/require.js </head> <body> </body> </html>
Please suggest a workaround for this.
The text was updated successfully, but these errors were encountered:
c0eef0c
Hi @arpanmukherjee1 this is actually a very good find, sorry for the delay in fixing it. Please try v1.5.5
Sorry, something went wrong.
No branches or pull requests
@VFK
I have two html files that needs to be processed with similar blocks.
My gulpfile task:
My HTML(s) all look like:
The problem lies with the second source file (
./admin.html
).The output (NOTE: line-breaks were removed):
Please suggest a workaround for this.
The text was updated successfully, but these errors were encountered: