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-07-15 11:31:50 +00:00
|
|
|
.postCss('resources/css/app.css', 'source/dist/css', [
|
2019-07-16 22:14:07 +00:00
|
|
|
require('postcss-import'),
|
|
|
|
require('tailwindcss'),
|
|
|
|
require('postcss-nested'),
|
2019-03-27 14:22:55 +00:00
|
|
|
])
|
2019-03-27 14:41:01 +00:00
|
|
|
.js('resources/js/app.js', 'source/dist/js')
|
2019-08-08 23:56:56 +00:00
|
|
|
.extract()
|
|
|
|
|
|
|
|
mix.browserSync({
|
|
|
|
proxy: 'localhost:8000',
|
|
|
|
files: [
|
|
|
|
'output_*/**/*'
|
|
|
|
],
|
|
|
|
notify: false,
|
|
|
|
open: false
|
|
|
|
})
|
|
|
|
|
|
|
|
mix.purgeCss({
|
|
|
|
folders: ['resources', 'output_*'],
|
|
|
|
whitelistPatterns: [/language/, /hljs/],
|
|
|
|
whitelistPatternsChildren: [/^markdown$/]
|
|
|
|
})
|