Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbfa6cd

Browse files
committed
Changed to escaped double-quotes to fix browser-sync
The 'files' argument was being passed to browser-sync inside single quotes. These aren't recognised when the script runs, so hot-reloading was only listening for changes on the html file. Switching to escaped double quotes fixes this.
1 parent cbe8ee7 commit cbfa6cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

19 - Webcam Fun/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "scripts.js",
66
"scripts": {
7-
"start" : "browser-sync start --server --files '*.css, *.html, *.js'"
7+
"start": "browser-sync start --server --files \"*.css, *.html, *.js\""
88
},
99
"author": "",
1010
"license": "ISC",

20 - Speech Detection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "scripts.js",
66
"scripts": {
7-
"start" : "browser-sync start --directory --server --files '*.css, *.html, *.js'"
7+
"start": "browser-sync start --directory --server --files \"*.css, *.html, *.js\""
88
},
99
"author": "",
1010
"license": "ISC",

21 - Geolocation/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "scripts.js",
66
"scripts": {
7-
"start" : "browser-sync start --directory --server --files '*.css, *.html, *.js' --https"
7+
"start": "browser-sync start --directory --server --files \"*.css, *.html, *.js\" --https"
88
},
99
"author": "",
1010
"license": "ISC",

0 commit comments

Comments
 (0)