Skip to content
Discussion options

You must be logged in to vote

There isn’t a dedicated outputName option, but you can change the
resolved entrypoint’s name:

export default defineConfig({
  hooks: {
    'entrypoints:resolved': (_, entrypoints) => {
      const options = entrypoints.find(
        entry => entry.type === 'options',
      )

      if (options) options.name = 'settings'
    },
  },
})

Keep the source as entrypoints/options.html or
entrypoints/options/index.html.

With current WXT, this emits settings.html and also points
manifest.options_ui.page to settings.html, producing:

chrome-extension://<id>/settings.html

Use a unique name so it doesn’t collide with another entrypoint.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hindmost
Comment options

@aklinker1
Comment options

Answer selected by hindmost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants