2019-03-25 17:15:33 +00:00
|
|
|
let mix = require('laravel-mix')
|
2018-05-18 20:41:26 +00:00
|
|
|
|
2019-03-25 17:15:33 +00:00
|
|
|
require('laravel-mix-purgecss')
|
2018-05-18 20:41:26 +00:00
|
|
|
|
|
|
|
mix.disableNotifications()
|
2019-03-27 14:22:55 +00:00
|
|
|
.postCss('assets/css/app.css', 'source/dist/css', [
|
|
|
|
require('postcss-nested'),
|
|
|
|
require('tailwindcss')('tailwind.config.js'),
|
|
|
|
])
|
|
|
|
.js('assets/js/app.js', 'source/dist/js')
|
|
|
|
.browserSync({
|
|
|
|
proxy: 'localhost:8000',
|
|
|
|
files: [
|
|
|
|
'source/**/*.{html,md,twig}',
|
|
|
|
],
|
|
|
|
notify: false,
|
|
|
|
})
|
|
|
|
.purgeCss({
|
|
|
|
folders: ['assets', 'output_*'],
|
|
|
|
whitelistPatterns: [/language/, /hljs/],
|
|
|
|
whitelistPatternsChildren: [/^markdown$/]
|
|
|
|
})
|