Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add client plugin to honox/vite #195

Merged
merged 1 commit into from
Jun 16, 2024
Merged

Conversation

yusukebe
Copy link
Member

Then you don't have to write:

export default defineConfig(({ mode }) => {
  if (mode === 'client') {
    return {
      build: {
        rollupOptions: {
          input: ['/app/style.css']
        }
      },
      plugins: [clientBuild()]
    }
  } else {
    return {
      plugins: [
        honox({
          devServer: {
            adapter
          }
        }),
        ssrBuild()
      ]
    }
  }
})

Instead of it, you can write it shortly:

export default defineConfig({
  plugins: [
    honox({
      devServer: {
        adapter
      },
      client: {
        input: ['/app/style.css']
      }
    }),
    pages()
  ]
})

@yusukebe yusukebe merged commit 903928f into main Jun 16, 2024
2 checks passed
@yusukebe yusukebe deleted the feat/add-client-plugin branch June 16, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant