tailwindcss/docs/webpack.mix.js

21 lines
607 B
JavaScript
Raw Normal View History

2017-08-24 19:38:25 -04:00
const mix = require('laravel-mix');
const tailwind = require('./../lib/index.js');
2017-08-24 19:38:25 -04:00
/*
|--------------------------------------------------------------------------
| 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'),
]
})