miickel / gulp-angular-templatecache

Concatenates and registers AngularJS templates in the $templateCache.
MIT License
525 stars 103 forks source link

Disable escaping safe utf8 characters #135

Closed mort3za closed 6 years ago

mort3za commented 8 years ago

I just updated to version 2.0.0 and suddenly size of output became doubled because of utf8 characters escaped (All of Persian characters has converted to \uXYZ.

Is there a way to completely disable escaping characters ( or better, specify safe range of utf8 characters) ?

AdriVanHoudt commented 8 years ago

Same problem here with rendering the € sign

bluetech commented 8 years ago

Version 2.0.0 switched to the "jsesc" library, which is described as "generating the shortest possible valid ASCII-only output". Since templates can contain Unicode characters, I think moving to that library was a mistake, it significantly bloats the output if the templates contain a lot of non-ASCII text.

kityan commented 7 years ago

I've made a pull request https://github.com/miickel/gulp-angular-templatecache/pull/142 This will give the posibility to pass {minimal: true} from gulp-angular-templatecache to jsesc.

miickel commented 6 years ago

merged & published #142, thanks @kityan