diff --git a/lib/resources/tasks/process-markup-minify-max.js b/lib/resources/tasks/process-markup-minify-max.js index 515752c2b..7e61b2a2e 100644 --- a/lib/resources/tasks/process-markup-minify-max.js +++ b/lib/resources/tasks/process-markup-minify-max.js @@ -20,7 +20,7 @@ export default function processMarkup() { minifyJS: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true, - ignoreCustomFragments: [/\${.*}/g] // ignore interpolation expressions + ignoreCustomFragments: [/\${.*?}/g] // ignore interpolation expressions })) .pipe(build.bundle()); } \ No newline at end of file diff --git a/lib/resources/tasks/process-markup-minify-max.ts b/lib/resources/tasks/process-markup-minify-max.ts index b6a5906c8..299b287b6 100644 --- a/lib/resources/tasks/process-markup-minify-max.ts +++ b/lib/resources/tasks/process-markup-minify-max.ts @@ -20,7 +20,7 @@ export default function processMarkup() { minifyJS: true, removeScriptTypeAttributes: true, removeStyleLinkTypeAttributes: true, - ignoreCustomFragments: [/\${.*}/g] // ignore interpolation expressions + ignoreCustomFragments: [/\${.*?}/g] // ignore interpolation expressions })) .pipe(build.bundle()); } diff --git a/lib/resources/tasks/process-markup-minify-min.js b/lib/resources/tasks/process-markup-minify-min.js index 112b39ba7..451727682 100644 --- a/lib/resources/tasks/process-markup-minify-min.js +++ b/lib/resources/tasks/process-markup-minify-min.js @@ -15,7 +15,7 @@ export default function processMarkup() { collapseWhitespace: true, minifyCSS: true, minifyJS: true, - ignoreCustomFragments: [/\${.*}/g] // ignore interpolation expressions + ignoreCustomFragments: [/\${.*?}/g] // ignore interpolation expressions })) .pipe(build.bundle()); } \ No newline at end of file diff --git a/lib/resources/tasks/process-markup-minify-min.ts b/lib/resources/tasks/process-markup-minify-min.ts index 18c2acb13..c283ce5d8 100644 --- a/lib/resources/tasks/process-markup-minify-min.ts +++ b/lib/resources/tasks/process-markup-minify-min.ts @@ -15,7 +15,7 @@ export default function processMarkup() { collapseWhitespace: true, minifyCSS: true, minifyJS: true, - ignoreCustomFragments: [/\${.*}/g] // ignore interpolation expressions + ignoreCustomFragments: [/\${.*?}/g] // ignore interpolation expressions })) .pipe(build.bundle()); } \ No newline at end of file