LaravelPackages.net
Acme Inc.
Toggle sidebar
alexvargash/laravel-preset-tailwind-sass-vue

Laravel preset with Tailwindcss, sass and vue set up for Laravel >=5.7

70
5
v0.2.0
About alexvargash/laravel-preset-tailwind-sass-vue

alexvargash/laravel-preset-tailwind-sass-vue is a Laravel package for laravel preset with tailwindcss, sass and vue set up for laravel >=5.7. It currently has 5 GitHub stars and 70 downloads on Packagist (latest version v0.2.0). Install it with composer require alexvargash/laravel-preset-tailwind-sass-vue. Discover more Laravel packages by alexvargash or browse all Laravel packages to compare alternatives.

Last updated

Laravel 5.7+ preset tailwind, sass & vue

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.

| 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 |

  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.

Star History Chart