Skip to content

Commit b1d0f4d

Browse files
authored
Merge pull request #81 from tailwindcss/sass-note
Add note to Laravel Mix instructions warning about Sass issue
2 parents 52f6fb2 + 33cf96e commit b1d0f4d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/source/docs/installation.blade.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,17 @@ mix.less('source/_assets/less/main.less', 'source/css')
162162
]
163163
})
164164
```
165+
166+
**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`:
167+
168+
```js
169+
var tailwindcss = require('tailwindcss');
170+
171+
mix.sass('resources/assets/sass/app.scss', 'public/css')
172+
.options({
173+
processCssUrls: false,
174+
postCss: [ tailwindcss('path/to/config.js') ],
175+
});
176+
```
177+
178+
For more information on what this feature does and the implications of disabling it, [see the Laravel Mix documentation](https://github.com/JeffreyWay/laravel-mix/blob/master/docs/css-preprocessors.md#css-url-rewriting).

0 commit comments

Comments
 (0)