UNPKG

vite-plugin-vue-style-bundler

Version:

`Automatically extract the `css` in `Vue` components and bundle them into the `js` source code, and then automatically insert the style into the head at runtime.

5 lines (4 loc) 197 B
import { StringOptions, compileStringAsync } from "sass" export default async function (code:string,options:StringOptions<'async'>){ return (await compileStringAsync(code,options)).css }