Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This update allows the browser to refresh automatically when changes are made to either:
.scss
).js
).twig
,.php
)This includes php files as there can be edge cases where markup could be present or a refresh would be useful whilst editing them.
To use hot reloading a variable in
gulpfile.js
needs to be edited to match the web server being used locally. This variable is provided since the way developers setup their servers might vary:Hot reloading is optional, if the proxy value is
null
, Hozokit will watch changes without making use of reloading capabilities:This will result in the following output:
This also comes with the added benefit of running the site from a local machine in other devices on the same network. This has been known to be problematic in Wordpress development due to URL issues but now it could be as simple as using the external URL provided in the terminal:
Local: http://localhost:3000 External: http://192.168.0.18:3000 # Use this to test the site on your phone (as long as it is in the same network).
Changes: