Split up Mix config
This commit is contained in:
parent
cd74805817
commit
80f9b51fe0
|
@ -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', [
|
|
||||||
require('postcss-import')(),
|
mix.postCss('resources/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: ['**/*.php', {
|
||||||
match: 'style.css',
|
match: 'style.css',
|
||||||
fn: function (event, file) {
|
fn: function (event, file) { this.reload() }
|
||||||
this.reload()
|
}]
|
||||||
}
|
})
|
||||||
}
|
|
||||||
]
|
|
||||||
})
|
|
||||||
|
|
Loading…
Reference in a new issue