Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

feat: allow customizing root id and tag #8883

Merged
merged 1 commit into from Nov 10, 2022
Merged

feat: allow customizing root id and tag #8883

merged 1 commit into from Nov 10, 2022

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Nov 10, 2022

πŸ”— Linked issue

Resolves nuxt/nuxt#15132 Resolves nuxt/nuxt#15312

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR allows customizing root element id and tag:

export default defineNuxtConfig({
  app: {
    rootId: 'app',
    rootTag: 'main'
  }
})

Renders Nuxt app into <main id="app">

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@codesandbox
Copy link

codesandbox bot commented Nov 10, 2022

CodeSandbox logoCodeSandbox logoΒ  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@netlify
Copy link

netlify bot commented Nov 10, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 86ef507
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/636cde0d2cda8a0009985520

@pi0 pi0 merged commit 0ff4ebe into main Nov 10, 2022
@pi0 pi0 deleted the feat/app-custom-root branch November 10, 2022 11:41
@pi0 pi0 mentioned this pull request Nov 15, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Customize app root element globalName - change __nuxt id as it was in NUXT2
2 participants