gulp-inline-ng2-template
gulp-inline-ng2-template copied to clipboard
Broken unicode symbol after minification
Check this https://github.com/Microsoft/TypeScript/issues/6521#issuecomment-172381883
@tandu does it work if you escape the backslash ?
If I put 2 backslashes angular2-seed production escapes unicode properly but in dev it start to behave incorrectly. I think you should add regexp that puts extra backslashes before unicode backslashes in css.
OK I'll do that.
Is this still valid ?
I think yes. I have changed my css to not use unicode so this issue doesn't affect my code anymore.
Any plans for a fix? I can confirm that this issue is still valid.
I actually have no idea how to fix that. Is it just to escape backslashes ?
+1
I'm also experiencing this problem. Is there a workaround or a solution to this problem yet?
You can escape the characters using the stypeProcessor
function.
Before I push something, I'd like to know if this is just a matter of escaping the backslashes or if this is more complex. Feedback appreciated.
So far it is just about escaping backslashes, for me at least
The problem is that it behaves differently in dev compared to prod. It needs consistent behavior.
this is what I did for a workaround with the style processor. I am guessing this will break once the issue is fixed though.
function styleProcessor(ext,file,cb){
file = file.replace(/\"\\/g,'"\\\\');
cb(null,file);
}
+1