Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
add ddev/browsersync
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler36 committed Jan 12, 2023
1 parent 7b8bd8b commit d1f1b60
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .ddev/browser-sync.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// #ddev-generated
let docroot = process.env.DDEV_DOCROOT;
let filesdir = process.env.DDEV_FILES_DIR;
let url = process.env.DDEV_HOSTNAME;

if (filesdir === "") {
filesdir = null
}

module.exports = {

files: [docroot, "app", "resources/views/**/*.php"],
ignore: ["node_modules", filesdir, "vendor"],
open: false,
ui: false,
server: false,
proxy: {
target: "localhost"
},
host: url,
}
2 changes: 1 addition & 1 deletion .ddev/docker-compose.browsersync.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ddev-generated
# Override the web container's standard HTTP_EXPOSE and HTTPS_EXPOSE
# This is to expose the browsersync port.
version: '3.6'
services:
web:
expose:
Expand Down
2 changes: 2 additions & 0 deletions .ddev/web-build/Dockerfile.ddev-browsersync
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#ddev-generated
RUN npm install -g browser-sync

0 comments on commit d1f1b60

Please sign in to comment.