@suid/vite-plugin
v0.3.1
Published
SUID integration plugin for Vite.
Downloads
11,089
Readme
@suid/vite-plugin
Features
- Optimizes the SUID imports:
// Input import { Wifi } from "@suid/material-icons"; import { Button } from "@suid/material"; // Output import Wifi from "@suid/material-icons/Wifi"; import Button from "@suid/material/Button";
- Sets the vite config required by
solid-start/vite
andvite-plugin-solid
.
Installation
npm install @suid/vite-plugin
Usage
// vite.config.ts
import suidPlugin from "@suid/vite-plugin";
import { defineConfig } from "vite";
import solidPlugin from "vite-plugin-solid";
export default defineConfig({
plugins: [suidPlugin(), solidPlugin()],
});
License
Distributed under the MIT License. See LICENSE for more information.