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-06-07 20:41:43 +00:00
|
|
|
require('postcss-import')(),
|
2019-03-27 14:22:55 +00:00
|
|
|
require('tailwindcss')('tailwind.config.js'),
|
2019-05-31 12:20:02 +00:00
|
|
|
require('postcss-nested'),
|
2019-03-27 14:22:55 +00:00
|
|
|
])
|
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-05-09 17:55:21 +00:00
|
|
|
'output_*/**/*'
|
2019-03-27 14:22:55 +00:00
|
|
|
],
|
|
|
|
notify: false,
|
2019-05-09 17:55:38 +00:00
|
|
|
open: false
|
2019-03-27 14:22:55 +00:00
|
|
|
})
|
|
|
|
.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$/]
|
|
|
|
})
|