Skip to content

docs: 📝 refactor to code group #30

@yuzheng14

Description

@yuzheng14

::: details Vite
```ts
// vite.config.ts
import valype from 'unplugin-valype/vite'
export default defineConfig({
plugins: [
valype({ /* options */ }),
],
})
```
:::
::: details Rollup
```ts
// rollup.config.js
import valype from 'unplugin-valype/rollup'
export default {
plugins: [
valype({ /* options */ }),
],
}
```
:::
::: details Webpack
```ts
// webpack.config.js
module.exports = {
plugins: [
require('unplugin-valype/webpack')({ /* options */ })
]
}
```
:::
::: details Nuxt
```ts
// nuxt.config.js
export default defineNuxtConfig({
modules: [
['unplugin-valype/nuxt', { /* options */ }],
],
})
```
:::
::: details Vue CLI
```ts
// vue.config.js
module.exports = {
configureWebpack: {
plugins: [
require('unplugin-valype/webpack')({ /* options */ }),
],
},
}
```
:::
::: details esbuild
```ts
// esbuild.config.js
import { build } from 'esbuild'
import valype from 'unplugin-valype/esbuild'
build({
plugins: [valype()],
})
```
:::

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationgood first issueGood for newcomers

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions