Fix less resource and output paths, sass tailwind config file path and unify indentation

This commit is contained in:
Pawel Mysior 2017-11-07 09:28:01 +01:00
parent 3156c66f79
commit 997b877703

View file

@ -157,12 +157,12 @@ If you're using a preprocessor, use the `options` method to add `tailwindcss` as
```js
var tailwindcss = require('tailwindcss');
mix.less('source/_assets/less/main.less', 'source/css')
mix.less('resources/assets/less/app.less', 'public/css')
.options({
postCss: [
tailwindcss('./path/to/your/tailwind-config.js'),
]
})
});
```
**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`:
@ -171,10 +171,10 @@ mix.less('source/_assets/less/main.less', 'source/css')
var tailwindcss = require('tailwindcss');
mix.sass('resources/assets/sass/app.scss', 'public/css')
.options({
processCssUrls: false,
postCss: [ tailwindcss('path/to/config.js') ],
});
.options({
processCssUrls: false,
postCss: [ tailwindcss('./path/to/your/tailwind-config.js') ],
});
```
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).