Add browsersync

This commit is contained in:
Oliver Davies 2019-04-02 10:06:37 +01:00
parent a03f3e89c9
commit 913dcc2c7c
3 changed files with 1014 additions and 24 deletions

View file

@ -8,6 +8,8 @@
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"
},
"devDependencies": {
"browser-sync": "^2.26.3",
"browser-sync-webpack-plugin": "2.0.1",
"cross-env": "^5.2.0",
"laravel-mix": "^4.0.14"
},

View file

@ -5,3 +5,11 @@ mix.disableNotifications()
require('tailwindcss')(),
require('postcss-nested')(),
])
.browserSync({
proxy: 'localhost:8000',
notify: false,
files: [
'resources/**/*.css',
'source/**/*.twig'
]
})

1028
yarn.lock

File diff suppressed because it is too large Load diff