Warning This is heavily a WIP. It is pushed unfinished in order to be able to co-write it with the core team. I've never tried Vite yet so it will be interesting :) Don't hesitate to contribute to this PR ;)
Based on the rewrite of Webpack and Parcel Getting Started guides, let's create a Vite guide.
Pre-requisites
-
https://github.com/twbs/bootstrap/pull/36411 must be merged -
https://github.com/twbs/bootstrap/pull/36382 must be merged
Tasks
-
Compare the content with https://github.com/twbs/bootstrap/pull/36411 and https://github.com/twbs/bootstrap/pull/36382 to get back the modifications here for consistency -
Study if things can be reused between the three guides (images, markdown, etc.)
-
-
Finish the guide by improving the first part -
Check if it is not better to start the guide bynpm create vite@latest my-project -- --template vanilla
Are some loaders not missing?
-
-
Finish the guide by writing the second part -
When the guide is considered OK -
Provide twbs/examples repository (see https://github.com/twbs/examples/pull/2) -
Maybe the index.html
needs to be updated for Parcel and Webpack ton include Vite reference In those example, having links to 5.2 isn't too hard to maintain?
-
-
Provide the example in StackBlitz -
@mdo :pray:: Create specific Vite images (x3) and compress them
-
-
Could be interesting to have a vite.new/bootstrap
? -
Provide an answer to https://github.com/twbs/bootstrap/discussions/36121