Skip to content

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

License

Notifications You must be signed in to change notification settings

superior57/laravel-preset-tailwind-sass-vue

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • PHP 64.5%
  • HTML 17.9%
  • JavaScript 10.3%
  • CSS 7.3%