@voodeng/vite-plugin-vstylus
v0.1.0
Published
simply handle stylus in vite2
Downloads
27
Maintainers
Readme
@voodeng/vite-plugin-vstylus
Simply handle stylus
files in vite2
support .styl/.stylus/.vue
file
it handle @import
,@require
relpath to absolute path
set global import file in each support file before vite transform
Usage
npm i @voodeng/vite-plugin-vstylus
- vite.config.js
const { vStylusPlugins } = require('@voodeng/vite-plugin-vstylus')
...
plugins: [
vStylusPlugins({
resolveURL: { nocheck: false },
import: [resolve('src/common/variables.styl'), resolve('src/common/mixin.styl')]
})
]
...
Options
options description in Stylus-lang
resolveURL
: Object
- set import or url() resolve options
import
: Array
- import file in each handing file
- need a abs path