pbrooker / laravel-mix-tailwind
Laravel-mix-tailwind. Forked from Jeffery Way to update tailwind file name.
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 25
Language:JavaScript
Type:package
This package is auto-updated.
Last update: 2025-03-10 21:57:57 UTC
README
This extension provides instant Tailwind support to your Mix (v2.1 and up) builds.
Usage
First, install the extension.
npm install laravel-mix-tailwind --save-dev
Then, require it within your webpack.mix.js
file, like so:
let mix = require('laravel-mix'); require('laravel-mix-tailwind'); mix .js('resources/js/app.js', 'public/js') .less('resources/less/app.less', 'public/css') .tailwind();
And you're done! Compile everything down with npm run dev
. (And Don't forget to add the Tailwind directives to your Sass/Less/Stylus entry file.)