let mix = require('laravel-mix')
require('laravel-mix-purgecss')
mix.disableNotifications()
.postCss('resources/css/app.css', 'source/dist/css', [
require('postcss-import'),
require('tailwindcss'),
require('postcss-nested'),
])
.js('resources/js/app.js', 'source/dist/js')
.extract()
mix.browserSync({
proxy: 'localhost:8000',
files: [
'output_*/**/*'
],
notify: false,
open: false
})
mix.purgeCss({
folders: ['resources', 'output_*'],
whitelistPatterns: [/language/, /hljs/],
whitelistPatternsChildren: [/^markdown$/]