- Laragon (https://laragon.org/) - Quick App > Laravel (zip)
- Start Terminal in Laragon >
composer install
+ npm install
- Copy
.env.example
to .env
and verify your test domain under Laragon environment works.
- Install preset for Tailwindcss and PurgeCSS: https://github.com/laravel-frontend-presets/tailwindcss
- Add BrowserSync in Mix: https://laravel-mix.com/docs/5.0/browsersync
const mix = require('laravel-mix');
require('laravel-mix-tailwind');
require('laravel-mix-purgecss');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.browserSync('laravel-test.test');
mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css')
.tailwind('./tailwind.config.js');
if (mix.inProduction()) {
mix
.version()
.purgeCss();
}