-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Changed hook names and arguments - the hook order is 'befor…
…eAssetTagGeneration', 'alterAssetTags', 'alterAssetTagGroups', 'afterTemplateExecution', 'beforeEmit', 'afterEmit' BREAKING CHANGE: Renamed beforeHtmlGeneration hook to beforeAssetTagGeneration BREAKING CHANGE: Renamed beforeHtmlProcessing hook to alterAssetTags BREAKING CHANGE: Renamed afterHtmlProcessing hook to beforeEmit
- Loading branch information
Showing
8 changed files
with
583 additions
and
244 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@startuml | ||
' See docs http://plantuml.com/sequence.html | ||
' | ||
' generate png: | ||
' npm run puml | ||
autonumber | ||
|
||
participant Webpack | ||
participant ChildCompiler | ||
participant TagCreator | ||
participant TemplateExecutor | ||
participant TagInjector | ||
|
||
Webpack -> ChildCompiler : start child compilation | ||
ChildCompiler -> ChildCompiler : compile html template | ||
ChildCompiler -> TemplateExecutor : handover compiled template | ||
Webpack -> TagCreator : hand over compilation\n assets | ||
note right of TagInjector: beforeAssetTagGeneration | ||
TagCreator -> TagCreator : create script style\n and meta tags | ||
note right of TagInjector: alterAssetTags | ||
TagCreator -> TagCreator : group tags to\n head and body groups | ||
note right of TagInjector: alterAssetTagGroups | ||
TagCreator -> TemplateExecutor : handover tag groups | ||
TemplateExecutor -> TemplateExecutor : execute compiled template | ||
note right of TagInjector: afterTemplateExecution | ||
TemplateExecutor -> TagInjector : handover html | ||
TagInjector -> TagInjector : inject script style\n and meta tags | ||
note right of TagInjector: beforeEmit | ||
TagInjector -> Webpack : add generated file to\n assets | ||
note right of TagInjector: afterEmit | ||
|
||
@enduml |
Oops, something went wrong.