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
In my project, there is a part of the snippet that converts Markdown and SVG to JavaScript. During development, I really don't care about the penalty it carries on performance, but on build, I want to cache the converted markdown file, so that it is attached to the JS code - basically, what I mean is, I want to make use of meta-programming here to append converted HTML strings in the placeholder location.
Is there any way to make sure that during the build process, I get to avoid having to make use of the convertor library, and have this cached in the function form?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In my project, there is a part of the snippet that converts Markdown and SVG to JavaScript. During development, I really don't care about the penalty it carries on performance, but on build, I want to cache the converted markdown file, so that it is attached to the JS code - basically, what I mean is, I want to make use of meta-programming here to append converted HTML strings in the placeholder location.
For example, here is the example SVG snippet:
which will be converted to
Is there any way to make sure that during the build process, I get to avoid having to make use of the convertor library, and have this cached in the function form?
Beta Was this translation helpful? Give feedback.
All reactions