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:41:01 +00:00
|
|
|
.postCss('resources/css/app.css', 'source/dist/css', [
|
2019-03-27 14:22:55 +00:00
|
|
|
require('postcss-nested'),
|
|
|
|
require('tailwindcss')('tailwind.config.js'),
|
|
|
|
])
|
2019-04-12 06:37:12 +00:00
|
|
|
.extract(['highlightjs', 'vue'])
|
2019-03-27 14:41:01 +00:00
|
|
|
.js('resources/js/app.js', 'source/dist/js')
|
2019-03-27 14:22:55 +00:00
|
|
|
.browserSync({
|
|
|
|
proxy: 'localhost:8000',
|
|
|
|
files: [
|
2019-03-28 12:33:33 +00:00
|
|
|
'resources/**/*.{css,js,vue}',
|
2019-03-27 14:22:55 +00:00
|
|
|
'source/**/*.{html,md,twig}',
|
|
|
|
],
|
|
|
|
notify: false,
|
|
|
|
})
|
|
|
|
.purgeCss({
|
2019-03-27 14:41:01 +00:00
|
|
|
folders: ['resources', 'output_*'],
|
2019-03-27 14:22:55 +00:00
|
|
|
whitelistPatterns: [/language/, /hljs/],
|
|
|
|
whitelistPatternsChildren: [/^markdown$/]
|
|
|
|
})
|