update,
This commit is contained in:
21
ryankochun91735/task1/project/bs_init.js
Normal file
21
ryankochun91735/task1/project/bs_init.js
Normal 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",
|
||||
});
|
Reference in New Issue
Block a user