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
When generating docs with @asyncapi/html-template version 3.3.0+, the generated index.html references CSS and JS files, but they are not created in the output folder when singleFile is not used.
With 3.2.0, both singleFile=true and singleFile=false modes worked correctly. Starting with 3.3.0, only singleFile=true works.
Tip
I suspect the issue is with the new conditional generation added.
Expected behavior
If singleFile=true: generate one standalone HTML file with bundled CSS/JS (works fine in 3.3.1 also).
If singleFile=false (or not passed): generate index.html + referenced css/ and js/ assets (broken in 3.3.0+).
Describe the bug.
When generating docs with
@asyncapi/html-templateversion3.3.0+, the generatedindex.htmlreferences CSS and JS files, but they are not created in the output folder when singleFile is not used.With
3.2.0, bothsingleFile=trueandsingleFile=falsemodes worked correctly. Starting with3.3.0, onlysingleFile=trueworks.Tip
I suspect the issue is with the new conditional generation added.
Expected behavior
Screenshots
How to Reproduce
Run:
./bin/run generate fromTemplate asyncapi.yaml @asyncapi/html-template -o ../docs --use-new-generator --force-writeExample spec (simplified):
Open the generated index.html in the browser.
Notice that it references CSS/JS files, but none are generated.
🖥️ Device Information [optional]
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue ?
None