Statamic meets Vite
This starter kit will replace the default Laravel Mix with Vite
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
exceptsite.js
- Remove everything on
resources/css
exceptsite.css
npm install
npm run dev
npm run build
Make sure you have DEV_SERVER_URL
on your ENV file.
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: