Zaid-Ajaj / Feliz

A fresh retake of the React API in Fable and a collection of high-quality components to build React applications in F#, optimized for happiness
https://zaid-ajaj.github.io/Feliz/
MIT License
534 stars 78 forks source link

Vite Support #542

Closed jkone27 closed 1 year ago

jkone27 commented 1 year ago

would it be possible to have Vite instead of webpack, it might remove a lot of additional not/required complexity? or a template option for vite

MangelMaxime commented 1 year ago

Feliz is compatible with any JavaScript bundler.

Example of a minimal Vite config:

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
    plugins: [react()],
    server: {
        watch: {
            ignored: [
                "**/*.fs"
            ]
        }
    }
})

Gitpod template: https://github.com/MangelMaxime/template-gitpod-fable-3-vite-react

mrakgr commented 1 year ago

@jkone27 I made a SAFE Stack template for Vite. I even made a video in the linked playlist on how to set it up from scratch.

Zaid-Ajaj commented 1 year ago

Feliz.Template v4.x is out 🚀 simplified a lot to use vite instead of webpack and latest Fable/Feliz bits