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

@ -9,6 +9,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.1.5",
"eslint": "^5.15.3",
"eslint-config-standard": "^12.0.0",

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/],

639
yarn.lock

File diff suppressed because it is too large Load diff