Conversation
settings: {
'svelte3/preprocess': text => {
return text.replace(/custom-style-tag/g, 'style')
},
},
|
What's the difference between this and #62 ? |
I see that #62 replaces I use WebStorm highlighting for my custom syntax, but it work only for custom tag names. I can't configure it for |
|
Hmm. I'm not quite sure I understand the need to use |
You can do it applying a markup preprocessor, in that function you will receive the entire .svelte file because everything is markup. Different is the case of script and style, in those functions you will receive the <style> and <script> contents only. Hope you find it useful |
Reason: I use custom style tag () due to the peculiarities of the development environment and style preprocessor. And I need to ignore it, but
ignore-stylesoption is not functional enoughThis is the most flexible solution to this and similar issues: