cnzaicom/tailwindcss is a Laravel package for laravel frontend preset for tailwind css.
It currently has 0 GitHub stars and 9 downloads on Packagist.
Install it with composer require cnzaicom/tailwindcss.
Discover more Laravel packages by cnzaicom
or browse all Laravel packages to compare alternatives.
Last updated
cd to your app.composer require cnzaicom/tailwindcss --dev. Laravel will automatically discover this package. No need to register the service provider.plugins: [ require('@tailwindcss/forms'), require('@tailwindcss/typography'), require('tailwindcss-children'), ]mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css', [
require('tailwindcss'),
/*自动增加 CSS 前缀词*/
require("autoprefixer"),
/*在 CSS 用嵌套的写法*/
require('postcss-nested'),
/*在 CSS 里可以 import 其他 CSS*/
require('postcss-import'),
]);
php artisan ui tailwindcss for the basic Tailwind CSS presetnpm install && npm run devphp artisan serve (or equivalent) to run server and test preset.php artisan ui tailwindcss --auth for the basic preset, auth route entry, and Tailwind CSS auth views in one go. (NOTE: If you run this command several times, be sure to clean up the duplicate Auth entries in routes/web.php)npm install && npm run devphp artisan migrate to create basic user tables.php artisan serve (or equivalent) to run server and test preset.




