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
- Copy
- Web server (Browsersync)
- Watch files changes, inject style, browser auto-refresh and cross-device synchronization
Nunjunks templates are only present for the demo.
- 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
MIT © Florian Bouvot