Skip to content

Add generators support for Vite #11

@jho406

Description

@jho406

Superglue doesn’t depend on a particular build tool, but we do expect you to start off with esbuild for the sake of the generators, which seems like the Rails default. I think support other build tools has certain conveniences with Vite being able to make this step entirely optional: https://thoughtbot.github.io/superglue/2.0.alpha/configuration/#page_to_page_mappingjs

Let’s start by adding support for Vite using https://vite-ruby.netlify.app/guide/rails.html. We should prompt the dev if they want to install Vite or continue with ESBuild. If Vite, then we should automatically use this recipe https://thoughtbot.github.io/superglue/2.0.alpha/recipes/vite/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions