mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Let's you do tailwind('config.js') instead of
tailwind(require('config.js')) when registering Tailwind as a PostCSS
plugin.
21 lines
607 B
JavaScript
21 lines
607 B
JavaScript
const mix = require('laravel-mix');
|
|
const tailwind = require('./../lib/index.js');
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Mix Asset Management
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Mix provides a clean, fluent API for defining some Webpack build steps
|
|
| for your Laravel application. By default, we are compiling the Sass
|
|
| file for the application as well as bundling up all the JS files.
|
|
|
|
|
*/
|
|
|
|
mix.less('source/_assets/less/main.less', 'source/css')
|
|
.options({
|
|
postCss: [
|
|
tailwind('tailwind.js'),
|
|
]
|
|
})
|