Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

lucky-media/statavite

Repository files navigation

Statavite

Statamic meets Vite

This starter kit will replace the default Laravel Mix with Vite

Install the Starter Kit

php please starter-kit:install my-site lucky-media/statavite

This is still in development and its not recommended yet for production.

Some manual steps have to be done for now:

  • Remove webpack.mix.js
  • Remove everything on resources/js except site.js
  • Remove everything on resources/css except site.css

Installating Assets

npm install

Running development

npm run dev

Building assets for production

npm run build

Some gotchas for now

Make sure you have DEV_SERVER_URL on your ENV file.

But why Vite instead of Laravel Mix ?

Along with the small footprint and the great performance, Vite offers a lot of benefits compared to Laravel Mix which internally uses Webpack.

Below I will link some articles:

Credits