Skip to content

Latest commit

 

History

History

vite-plugin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@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.