Laravel Mix Boilerplate
A boilerplate for building web projects with Laravel Mix.
Features
- CSS
- Sass compilation
- PostCSS transformation (Tailwindcss with JIT mode, Autoprefixer)
- Minify
- File versioning for cache-busting (in production)
- JavaScript
- Minify with terser
- File versioning for cache-busting (in production)
- Images
- Copy
- Optimize with imagemin (in production)
- Fonts
- Web server (Browsersync)
- Watch files changes, inject style, browser auto-refresh and cross-device synchronization
Nunjunks templates are only present for the demo.
Getting Started
Quick Start
- Clone repository
- Install Node dependencies
npm install
.
- Use Mix CLI:
- Compiling in a Local Environment
npx mix
- Watch Assets for changes
npx mix watch
- Compiling for production
npx mix --production
Futher reading
License
MIT Florian Bouvot