-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build: Add optional web pack live reload plugin
The livereload plugin allows one to automatically reload the page when webpack is done building the files. This functionality can optionally be enabled using `define( 'GUTENBERG_LIVE_RELOAD', true );`. The URL to the livereload server can be customized by setting this constant to a string. The port that the livereload server starts on when starting webpack can be customized using the `GUTENBERG_LIVE_RELOAD_PORT` environment variable. For example: `GUTENBERG_LIVE_RELOAD_PORT=123456 npm run dev` will run the livereload server on port 123456. Together with the `GUTENBERG_LIVE_RELOAD` constant, this can be used to run multiple livereload servers.
- Loading branch information
Showing
4 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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