mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui.git
synced 2026-01-02 13:33:06 +00:00
Update vite config to have hot reload with preact
This commit is contained in:
parent
5a64c1a93b
commit
10de82b1c4
@ -1,11 +1,12 @@
|
|||||||
import react from "@vitejs/plugin-react";
|
// import react from "@vitejs/plugin-react";
|
||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import packageJson from "./package.json";
|
import packageJson from "./package.json";
|
||||||
import svgr from "vite-plugin-svgr";
|
import svgr from "vite-plugin-svgr";
|
||||||
|
import preact from '@preact/preset-vite'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react(), svgr({
|
plugins: [preact(), svgr({
|
||||||
svgrOptions: {
|
svgrOptions: {
|
||||||
plugins: ["@svgr/plugin-svgo", "@svgr/plugin-jsx"],
|
plugins: ["@svgr/plugin-svgo", "@svgr/plugin-jsx"],
|
||||||
svgoConfig: {
|
svgoConfig: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user