Skip to content

Commit

Permalink
Add introduction to Vite docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers authored Jan 29, 2025
1 parent e41d0b6 commit daf2476
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions console/asset-compilation-vite.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Asset Compilation - Vite

## Introduction

[Vite](https://vite.dev/) is a modern frontend build tool that provides an extremely fast development environment and bundles your code for production. When building applications with Winter CMS, you will typically use Vite to bundle your application's CSS and JavaScript files into production ready assets.

Winter integrates seamlessly with Vite by providing several console commands ([`vite:create`](#automatic-vite-configuration), [`vite:install`](#install-node-dependencies), [`vite:list`](#list-registered-vite-packages), [`vite:compile`](#compile-a-vite-packages), and [`vite:watch`](#watch-a-vite-package)) for development and [helper functions](#loading-vite-assets) for loading your assets for development and production.

By default, any plugin or theme containing a `vite.config.mjs` file at it's root will be automatically registered. Registered items can be viewed with the `vite:list` command.

<div id="automatic-configuration"></div>
Expand Down

0 comments on commit daf2476

Please sign in to comment.