Add BrowserSync

This commit is contained in:
Oliver Davies 2019-03-27 01:13:22 +00:00
parent 3a872882ad
commit 9b65f4ca99
3 changed files with 87 additions and 0 deletions

View file

@ -5,6 +5,8 @@
"watch": "npm run build -- --watch"
},
"devDependencies": {
"browser-sync": "^2.26.3",
"browser-sync-webpack-plugin": "2.0.1",
"cross-env": "^5.2.0",
"laravel-mix": "^4.0.14",
"postcss-nested": "^4.1.2",

View file

@ -4,3 +4,12 @@ mix.postCss('src/css/style.css', '', [
require('tailwindcss')('./tailwind.config.js'),
require('postcss-nested')(),
])
mix.browserSync({
proxy: 'wordcamp2019.docksal',
notify: false,
files: [
'*.php',
'src/**/*.css'
],
})