Closed cschuff closed 7 years ago
Hi,
first of all: thanks for this great tool. I'm using it a lot.
I discovered a little and quite tricky quirk. For a library-preload.json gulp-ui5-preload minifies "\\$&" to \"\\\\JSON_CONTENT\"
"\\$&"
\"\\\\JSON_CONTENT\"
I tracked this down to index.js:79 var contents = template.replace('JSON_CONTENT', jsonContent);
var contents = template.replace('JSON_CONTENT', jsonContent);
Problem is this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter
Pull Request with fix will follow.
BR Chris
https://github.com/geekflyer/gulp-ui5-preload/pull/7
Could you please validate and publish a new version to npm.
Thanks a lot!
Hi,
first of all: thanks for this great tool. I'm using it a lot.
I discovered a little and quite tricky quirk. For a library-preload.json gulp-ui5-preload minifies
"\\$&"
to\"\\\\JSON_CONTENT\"
I tracked this down to index.js:79
var contents = template.replace('JSON_CONTENT', jsonContent);
Problem is this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter
Pull Request with fix will follow.
BR Chris