Skip to content

Commit

Permalink
fix tailwind docs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 16, 2020
1 parent 0bf0845 commit 4c4c372
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mix.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ Your application's `webpack.mix.js` file is your entry point for all asset compi

[Tailwind CSS](https://tailwindcss.com) is a modern, utility-first framework for building amazing sites without ever leaving your HTML. Let's dig into how to start using it in a Laravel project with Laravel Mix. First, we should install Tailwind using NPM and generate our Tailwind configuration file:

npm install tailwindcss@compat
npm install

npm install -D tailwindcss@npm:@tailwindcss/postcss7-compat @tailwindcss/postcss7-compat postcss@^7

npx tailwindcss init

Expand Down Expand Up @@ -116,7 +118,6 @@ Once you have configured Tailwind's layers, you are ready to update your applica
```js
mix.js('resources/js/app.js', 'public/js')
.postCss('resources/css/app.css', 'public/css', [
require('postcss-import'),
require('tailwindcss'),
]);
```
Expand Down

0 comments on commit 4c4c372

Please sign in to comment.