Split mix commands

This commit is contained in:
Oliver Davies 2019-06-07 19:18:10 +01:00
parent 6ed0abf6a3
commit 686397e17a

View file

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