mix.tailwind()
Switch branches/tags
Nothing to show
Clone or download
Latest commit b89e0b6 Mar 16, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Add readme Mar 16, 2018
index.js First draft Mar 16, 2018
package.json First draft Mar 16, 2018

README.md

Laravel Mix Tailwind

This extension provides instant Tailwind support to your Mix (v2.1 and up) builds.

Usage

First, install the extension.

npm install laravel-mix-tailwind

Then, require it within your webpack.mix.js file, like so:

let mix = require('laravel-mix');

require('laravel-mix-tailwind');

mix
    .js('resources/assets/js/app.js', 'public/js')
    .less('resources/assets/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.)