Closed heychazza closed 4 years ago
Hey, sorry for the late response. I assume this is the same issue as mentioned in https://github.com/JPeer264/node-rename-css-selectors/issues/20#issuecomment-648006247. Actually I do not handle EJS tags at all. Do you want to ignore them all the time?
20 (comment)
Similar, can you let us configure extra regex filters, in my case <%= x %>
If that whole string gets replaced, yes, you can regex that whole thing with setExclude:
I think following would do the trick:
const rcs = require('rcs-core');
rcs.baseLibrary.setExclude(/<%=[\s\S]+%>/);
If that whole string gets replaced, yes, you can regex that whole thing with setExclude:
I think following would do the trick:
const rcs = require('rcs-core'); rcs.baseLibrary.setExclude(/<%=[\s\S]+%>/);
So I would use this before my obfuscation code?
Exactly 👍
Exactly 👍
Awesome, this works perfectly! Would be cool to documentate this perhaps.
Good point. I will add a snippet to the documentation
Hey there,
I've been obfuscating using this, however it's also renaming stuff inside of ejs tags, any way round this?