You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought the plugin wasn't automatically caching but I noticed it only seems to work one way. i.e. saving a css/scss file, those classes get cached.
• Create new class in SCSS file then save, the new class will be suggested in JS or JSX file.
• Create new class in JSX file then save, cache isn't automatic and clicking lightening bolt required.
• Create new class in JS file (javascript and javascriptreact) and save, no caching at all, not even manual.
Is it possible to trigger automatic cache when a JSX file is saved?
Additionally, can the plugin be made to cache normal JS files, or even just those with language mode javascriptreact? I tried adding 'js' to the glob pattern but that didn't seem to work.
Cheers 😁
The text was updated successfully, but these errors were encountered:
LeeBuckle
changed the title
Auto caching only works occurs when I save an SCSS file
Auto caching only occurs when I save an SCSS file
Jul 6, 2021
Yes, Auto caching mechanism is only for Stylesheets not for other languages. We may do this in the future but there are still other open issues in my backlog. I am thinking to handle all of this issues including this one hopefully in 1-2 weeks. I was very busy with my own job and a bit lost on open-source projects.
Will work on this for sure but no promises about JS/X TS/X files because right now, I have no idea how this will impact the overall performance. But kinda doable...
Let me know if you have any other thoughts on this issue here.
No worries, just glad to know that you might be able to add the functionality.
If it happens to be expensive, maybe it could be added with a toggle in the options? That way it's up to the user and can easily be switched off if it causes them any trouble.
If it happens to be expensive, maybe it could be added with a toggle in the options? That way it's up to the user and can easily be switched off if it causes them any trouble.
Version: 1.7.8
I thought the plugin wasn't automatically caching but I noticed it only seems to work one way. i.e. saving a css/scss file, those classes get cached.
• Create new class in SCSS file then save, the new class will be suggested in JS or JSX file.
• Create new class in JSX file then save, cache isn't automatic and clicking lightening bolt required.
• Create new class in JS file (javascript and javascriptreact) and save, no caching at all, not even manual.
Is it possible to trigger automatic cache when a JSX file is saved?
Additionally, can the plugin be made to cache normal JS files, or even just those with language mode javascriptreact? I tried adding 'js' to the glob pattern but that didn't seem to work.
Cheers 😁
The text was updated successfully, but these errors were encountered: