laravel-vue-tailwind-purgecss maintained by ava-cn
Description
A simple way to install Vue, Tailwind and PurgeCSS
Author
Last update
2020/10/21 04:49
(dev-master)
License
Downloads
12
Laravel Vue Tailwind PurgeCSS
A simple way to install Vue, Tailwind and PurgeCSS in Laravel projects without laravel/ui:3.0 or Jetstream.
What it includes:
Additionals:
ExampleComponentis back!- Replaces the
welcome.blade.phptemplate with one that extends the main layoutlayouts/master.blade.php - Two CSS files for custom components and custom utilities, don't be afraid to extend it!
Webpack.mix.jsconfigured just the way I like it.
Installation
You can install the package via composer in your fresh Laravel project:
composer require ava-cn/laravel-vue-tailwind-purgecss
Usage
After you install it, just execute this command.
php artisan preset:vtp
:warning: This command delete some foldes, replaces some files and edit another ones. Use it with precaution
Then, you need install npm dependencies and create the Tailwind config file.
npm install && npx tailwind init && npm run dev
If you want a full Tailwind config you can run the next command:
npm install && npx tailwind init --full && npm run dev
Uninstall
When you complete the instalation, configuration you can remove this packages from you project as well.
composer remove ava-cn/laravel-vue-tailwind-purgecss -vvv
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.