Needs work
Project:
Prototype
Version:
5.x-dev
Component:
Code
Priority:
Normal
Category:
Plan
Assigned:
Reporter:
Created:
2 Oct 2024 at 21:58 UTC
Updated:
5 Feb 2026 at 05:32 UTC
Jump to comment: Most recent
We want to research into the pros/cons of switching to Vite over the current BrowserSync implementation.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
mortona2k commentedI recently posted this starter theme to provide unocss/vite setup out of the box, with lots of instructions for local dev setup.
https://www.drupal.org/project/unocss_starter
What about aligning with the Front End Bundler initiative? https://www.drupal.org/about/core/blog/new-community-initiative-frontend...
From a recent slack conversation, it sounds like Vite and Foxy are the tech currently in the works.
I am trying to think through a setup issue that may impact others using bundling tools. UnoCSS (Tailwind) needs to parse the code for utility classes to include. If you want to build a base theme with more flexibility, like integrating with a design system, or building assets the same way for module and themes (using shared sass/config), it's unclear how to build the libraries.
For example, I have a starterkit/base theme used in multiple projects. I want to add some customization for one of the projects I don't want to generate from the starterkit because that would fork the code. I want the subtheme to inherit templates and css unless overridden, but configuring vite to ignore templates that are overridden is difficult.
Comment #4
jldust commentedI took a first pass at migrating over to Vite, I think it needs more work still.