mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
45 lines
880 B
Markdown
45 lines
880 B
Markdown
# rollup-plugin-vue@next
|
|
|
|
> Roll Vue 3 SFCs with Rollup.
|
|
|
|
|
|
``` js
|
|
import vuePlugin from 'rollup-plugin-vue'
|
|
|
|
export default {
|
|
plugins: [
|
|
vuePlugin(/* options */)
|
|
]
|
|
}
|
|
```
|
|
|
|
## Options
|
|
|
|
``` js
|
|
export interface Options {
|
|
include: string | RegExp | (string | RegExp)[]
|
|
exclude: string | RegExp | (string | RegExp)[]
|
|
|
|
// use 'node' if compiling for SSR
|
|
target: 'node' | 'browser'
|
|
|
|
// if true, will attach __file to component even in production.
|
|
// defaults to false.
|
|
exposeFilename: boolean
|
|
|
|
// if true, handle preprocessors directly instead of delegating to other
|
|
// rollup plugins
|
|
// defaults to false.
|
|
preprocessStyles?: boolean
|
|
cssModulesOptions?: {
|
|
// https://github.com/css-modules/postcss-modules#usage
|
|
}
|
|
|
|
// these are simply passed on to @vue/compiler-sfc
|
|
compiler
|
|
compilerOptions
|
|
transformAssetUrls
|
|
preprocessCustomRequire
|
|
}
|
|
```
|