Split up Mix config

This commit is contained in:
Oliver Davies 2019-06-07 22:18:43 +01:00
parent cd74805817
commit 80f9b51fe0

View file

@ -1,22 +1,19 @@
let mix = require('laravel-mix') let mix = require('laravel-mix')
mix.disableNotifications() mix.disableNotifications()
.postCss('resources/css/app.css', 'style.css', [
mix.postCss('resources/css/app.css', 'style.css', [
require('postcss-import')(), require('postcss-import')(),
require('tailwindcss')(), require('tailwindcss')(),
require('postcss-nested')(), require('postcss-nested')()
]) ])
.browserSync({
mix.browserSync({
proxy: 'wordcamp2019.docksal', proxy: 'wordcamp2019.docksal',
notify: false, notify: false,
open: false, open: false,
files: [ files: ['**/*.php', {
'**/*.php',
{
match: 'style.css', match: 'style.css',
fn: function (event, file) { fn: function (event, file) { this.reload() }
this.reload() }]
} })
}
]
})