tailwindcss/docs/webpack.mix.js
Adam Wathan 18f4e650bd Support passing config as a path
Let's you do tailwind('config.js') instead of
tailwind(require('config.js')) when registering Tailwind as a PostCSS
plugin.
2017-10-15 17:10:25 -04:00

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'),
]
})