Created
June 30, 2024 19:07
-
-
Save Asikur22/8a6ee72a859e204d2735f5e605b00638 to your computer and use it in GitHub Desktop.
WordPress hot reload with browser-sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name" : "wp-hot-reloader", | |
"version" : "1.0", | |
"description" : "WordPress hot reload with browser-sync", | |
"author" : "Asiqur Rahman <[email protected]> (https://www.asique.net/)", | |
"license" : "GPL-2.0-or-later", | |
"config" : { | |
"host" : "wp.local", | |
"port" : "8080" | |
}, | |
"scripts" : { | |
"start" : "browser-sync start --proxy=http://$npm_package_config_host --host=$npm_package_config_host --open=external --port=$npm_package_config_port --files '**/*.php, **/*.css, **/*.js'" | |
}, | |
"devDependencies" : { | |
"browser-sync" : "^2.29.3" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
change config host & port according to your project needs.