Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.05 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.05 KB

@suid/vite-plugin

workflow-badge npm-badge

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 and vite-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.