Add browsersync
This commit is contained in:
parent
2022cec0f5
commit
af5631ea4c
|
@ -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",
|
||||
|
|
|
@ -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/],
|
||||
|
|
Reference in a new issue