Add note to Laravel Mix instructions warning about Sass issue

This commit is contained in:
Adam Wathan 2017-11-03 10:53:20 -04:00
parent a77d879db6
commit df51b6ca49

View File

@ -162,3 +162,15 @@ mix.less('source/_assets/less/main.less', 'source/css')
]
})
```
**Note for Sass users:** Due to [an unresolved issue](https://github.com/bholloway/resolve-url-loader/issues/28) with one of Mix's dependencies, to use Sass with Tailwind you'll need to disable `processCssUrls`:
```js
var tailwindcss = require('tailwindcss');
mix.sass('resources/assets/sass/app.scss', 'public/css')
.options({
processCssUrls: false,
postCss: [ tailwindcss('path/to/config.js') ],
});
```