Skip to content

Commit

Permalink
Add example config for less and sass preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldyrynda committed Nov 5, 2017
1 parent 0153624 commit 763feec
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/tailwindcss-stubs/webpack.mix.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') ],
// });

0 comments on commit 763feec

Please sign in to comment.