alexvargash / laravel-preset-tailwind-sass-vue
Laravel preset with Tailwindcss, sass and vue set up for Laravel >=5.7
v0.2.0
2019-01-15 17:17 UTC
This package is auto-updated.
Last update: 2024-11-16 06:11:14 UTC
README
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.
Preset
- This package adds the following npm dependencies: The NPM dependencies are on the latest version as of 15/01/2019.
- Removes the unnecessary lines on app.js and botstrap.js.
- Change the webpack.mix.js to work with Tailwind CSS and Purge Css.
- Add the Tailwind CSS default structure to app.sass.
- Creates an example Vue instance and added it to welcome.blade.php.
Usage
- Fresh install of Laravel >= 5.7.
- Install the preset with
composer require alexvargash/laravel-preset-tailwind-sass-vue
. Laravel will automatically discover this package. No need to register the service provider. - Run the preset with
php artisan preset tailwind-sass-vue
. - Run the npm installation packages
npm install
. - Initialize Tailwind CSS with
node_modules/.bin/tailwind init tailwind.js
. - Compile the assets with
npm run dev
. - This package can be removed after running it
composer remove alexvargash/laravel-preset-tailwind-sass-vue
.