A scaffolding preset for adding the necesary npm dependecies and file structure for using Tailwind CSS, Sass and Vue.js with a Laravel 5.7 project.
This package only works with Laravel 5.7 due to the changes on the resources directory.
Package | Current version |
---|---|
vue | 2.5.22 |
vue-router | 3.0.2 |
tailwindcss | 0.7.3 |
laravel-mix | 4.0.14 |
laravel-mix-purgecss | 4.0.0 |
laravel-mix-tailwind | 0.1.0 |
composer require alexvargash/laravel-preset-tailwind-sass-vue
. Laravel will automatically discover this package. No need to register the service provider.php artisan preset tailwind-sass-vue
.npm install
.node_modules/.bin/tailwind init tailwind.js
.npm run dev
.composer remove alexvargash/laravel-preset-tailwind-sass-vue
.