gulp-inline-ng2-template icon indicating copy to clipboard operation
gulp-inline-ng2-template copied to clipboard

Broken unicode symbol after minification

Open tandu opened this issue 9 years ago • 14 comments

Check this https://github.com/Microsoft/TypeScript/issues/6521#issuecomment-172381883

tandu avatar Jan 17 '16 21:01 tandu

@tandu does it work if you escape the backslash ?

ludohenin avatar Jan 18 '16 11:01 ludohenin

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.

tandu avatar Jan 18 '16 11:01 tandu

OK I'll do that.

ludohenin avatar Jan 18 '16 11:01 ludohenin

Is this still valid ?

ludohenin avatar Feb 15 '16 21:02 ludohenin

I think yes. I have changed my css to not use unicode so this issue doesn't affect my code anymore.

tandu avatar Feb 16 '16 06:02 tandu

Any plans for a fix? I can confirm that this issue is still valid.

hjalmers avatar Apr 07 '16 14:04 hjalmers

I actually have no idea how to fix that. Is it just to escape backslashes ?

ludohenin avatar Apr 08 '16 16:04 ludohenin

+1

nick1247 avatar Apr 20 '16 16:04 nick1247

I'm also experiencing this problem. Is there a workaround or a solution to this problem yet?

henninga avatar May 31 '16 08:05 henninga

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.

ludohenin avatar May 31 '16 11:05 ludohenin

So far it is just about escaping backslashes, for me at least

henninga avatar May 31 '16 11:05 henninga

The problem is that it behaves differently in dev compared to prod. It needs consistent behavior.

tandu avatar May 31 '16 13:05 tandu

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);
}

jasedwards avatar Jun 18 '16 13:06 jasedwards

+1

jedmundo avatar Sep 06 '16 08:09 jedmundo