-
Notifications
You must be signed in to change notification settings - Fork 27.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Reload webpack if needed (#2076)
* Reload webpack via hot-reloader when needed. We need to do this specially we removed a previosly built page from the filesystem. * Make sure reloading is happen only once * Reload only if there's a missing page error. * Remove debug logs. * 2.4.2 * Refactor the codebase a bit. * Move some commonly used regexp to a utils module. * Handle the reloading well when there's a custom error page. * Add a HMR test case. * Close the browser in the test case.
- Loading branch information
Showing
7 changed files
with
226 additions
and
59 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export const IS_BUNDLED_PAGE = /^bundles[/\\]pages.*\.js$/ | ||
export const MATCH_ROUTE_NAME = /^bundles[/\\]pages[/\\](.*)\.js$/ |
Oops, something went wrong.