Add browsersync

This commit is contained in:
Oliver Davies 2019-03-27 13:57:01 +00:00
parent 2022cec0f5
commit af5631ea4c
3 changed files with 630 additions and 19 deletions

View file

@ -14,6 +14,14 @@ mix.js([
'assets/js/app.js',
], 'source/dist/js/app.js')
mix.browserSync({
proxy: 'localhost:8000',
files: [
'source/**/*.{html,md,twig}',
],
notify: false,
})
mix.purgeCss({
folders: ['assets', 'output_*'],
whitelistPatterns: [/language/, /hljs/],