Skip to content

Don't embed settings in unbundled HTML output#176

Merged
slimbuck merged 3 commits intoplaycanvas:mainfrom
slimbuck:settings-dev
Mar 13, 2026
Merged

Don't embed settings in unbundled HTML output#176
slimbuck merged 3 commits intoplaycanvas:mainfrom
slimbuck:settings-dev

Conversation

@slimbuck
Copy link
Copy Markdown
Member

Summary

  • In unbundled mode, write viewer settings as a separate settings.json file instead of embedding them inline in the HTML.
  • The HTML template's default fetch('./settings.json') behavior is preserved, keeping unbundled output consistent: all assets (CSS, JS, SOG, and now settings) are separate files.
  • Update default camera FOV from 50 to 75.

@slimbuck slimbuck requested review from a team and Copilot March 13, 2026 11:25
@slimbuck slimbuck self-assigned this Mar 13, 2026
@slimbuck slimbuck added the bug Something isn't working label Mar 13, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the HTML writer to keep unbundled viewer output fully “asset-separated” by moving viewer settings out of the generated HTML and into a standalone JSON file, aligning with the template’s default settings-loading behavior.

Changes:

  • In unbundled mode, write viewer settings to settings.json instead of embedding them inline in the HTML.
  • Update default camera FOV from 50 to 75.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lib/writers/write-html.ts
@slimbuck slimbuck merged commit b026e74 into playcanvas:main Mar 13, 2026
3 checks passed
@slimbuck slimbuck deleted the settings-dev branch March 13, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants