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
We can go one step further and instruct Greenwood to strip out the `<script>` tags for these components by adding the `data-gwd-opt="static"` attribute to them, since we have no need for any interactivity on these components.
That renders fine in development
but disappeared in a production build! 😱
It seems specific to the use of - and " I guess because we have a similar piece of content type="module" that renders just fine 🤷♂️
Greenwood is ECMAScript Modules (ESM) first, as shown with the usage of the `type="module"` attribute in the example below:
and removing the - is fine
Details
So I tried a number of things to debug, and nothing really seemed to help
Update all markdown related deps to latest using npm overrides
It seems like an interim solution that works is just single quotes
We can go one step further and instruct Greenwood to strip out the `<script>` tags for these components by adding the `data-gwd-opt='static'` attribute to them, since we have no need for any interactivity on these components.
The text was updated successfully, but these errors were encountered:
Type of Change
Bug
Summary
Observed in ProjectEvergreen/www.greenwoodjs.dev#139 that we had this bit of markdown in our docs
That renders fine in development
but disappeared in a production build! 😱
It seems specific to the use of
-
and"
I guess because we have a similar piece of contenttype="module"
that renders just fine 🤷♂️and removing the
-
is fineDetails
So I tried a number of things to debug, and nothing really seemed to help
"
prerender: true
in greenwood.config.jsIt seems like an interim solution that works is just single quotes
The text was updated successfully, but these errors were encountered: