Skip to content

A boilerplate for building web projects with Laravel Mix.

Notifications You must be signed in to change notification settings

kcalliauw/laravel-mix-boilerplate

 
 

Repository files navigation

Laravel Mix Boilerplate

A boilerplate for building web projects with Laravel Mix.

Features

  • CSS
    • Sass compilation
    • PostCSS transformation (Tailwindcss, Autoprefixer)
    • Remove unused CSS with PurgeCSS
    • 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.

Getting Started

Prerequisites

Make sure these are installed first:

Quick Start

  1. Clone repository
  2. Install Node dependencies npm install.
  3. 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

About

A boilerplate for building web projects with Laravel Mix.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 82.9%
  • JavaScript 11.7%
  • SCSS 5.4%