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

  1. This package adds the following npm dependencies: The NPM dependencies are on the latest version as of 15/01/2019.
  1. Removes the unnecessary lines on app.js and botstrap.js.
  2. Change the webpack.mix.js to work with Tailwind CSS and Purge Css.
  3. Add the Tailwind CSS default structure to app.sass.
  4. Creates an example Vue instance and added it to welcome.blade.php.

Usage

  1. Fresh install of Laravel >= 5.7.
  2. 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.
  3. Run the preset with php artisan preset tailwind-sass-vue.
  4. Run the npm installation packages npm install.
  5. Initialize Tailwind CSS with node_modules/.bin/tailwind init tailwind.js.
  6. Compile the assets with npm run dev.
  7. This package can be removed after running it composer remove alexvargash/laravel-preset-tailwind-sass-vue.