From 763feecda756154676a826eb8d927c423ab44ffd Mon Sep 17 00:00:00 2001 From: Michael Dyrynda Date: Sun, 5 Nov 2017 18:30:29 +1030 Subject: [PATCH] Add example config for less and sass preprocessing --- src/tailwindcss-stubs/webpack.mix.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/tailwindcss-stubs/webpack.mix.js b/src/tailwindcss-stubs/webpack.mix.js index 94d6e4b6..cacbeb47 100644 --- a/src/tailwindcss-stubs/webpack.mix.js +++ b/src/tailwindcss-stubs/webpack.mix.js @@ -16,3 +16,18 @@ mix.js('resources/assets/js/app.js', 'public/js') .postCss('resources/assets/css/main.css', 'public/css', [ tailwindcss('tailwind.js'), ]); + +// If you want to use LESS for your preprocessing +// mix.less('resources/assets/less/main.less', 'public/css') +// .options({ +// postCss: [ +// tailwindcss('./tailwind.js'), +// ] +// }) + +// If you want to use SASS for preprocessing +// mix.sass('resources/assets/sass/app.scss', 'public/css') +// .options({ +// processCssUrls: false, +// postCss: [ tailwindcss('tailwind.js') ], +// });