This commit is contained in:
louiscklaw
2025-02-01 02:05:11 +08:00
commit 8b32f90f5f
8154 changed files with 1149767 additions and 0 deletions

21
task1/project/bs_init.js Normal file
View File

@@ -0,0 +1,21 @@
/**
* Require Browsersync
*/
var browserSync = require("browser-sync");
/**
* Run Browsersync with server config
*/
browserSync({
watch: true,
watchOptions: {
ignoreInitial: true,
ignored: "*.txt",
},
files: ["src/**/*.php", "src/**/*.css", "app/*.html", "app/css/*.css"],
watchEvents: ["add", "change", "unlink", "addDir", "unlinkDir"],
reloadDelay: 10,
// Using a localhost address with a port
proxy: "localhost:8000",
});