Skip to content

Instantly share code, notes, and snippets.

@john-crossley
Created May 13, 2018 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-crossley/8ba827dbea9403325613fcdb497d7332 to your computer and use it in GitHub Desktop.
Save john-crossley/8ba827dbea9403325613fcdb497d7332 to your computer and use it in GitHub Desktop.
Add Tailwind CSS to Laravel Mix
const { mix } = require('laravel-mix');
const tailwindcss = require('tailwindcss');
mix.sass('Resources/src/css/app.scss', 'Public/css/app.css')
.options({
processCssUrls: false,
postCss: [tailwindcss('./tailwind.js')]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment