new InitFragment(content, stage, position, key?, endContent?): InitFragment<GenerateContext>Attributes
content:
<string>the source code that will be included as initialization code
stage:
<number>category of initialization code (contribute to order)
position:
<number>position in the category (contribute to order)
key:
<string>unique key to avoid emitting the same initialization code twice
endContent:
<string>the source code that will be included at the end of the module
Returns:
{InitFragment
}
Attributes
webpack.InitFragment.deserialize(context): voidcontext{ObjectDeserializerContext} context- Returns: {void}
webpack.InitFragment.getContent(context): voidcontext{GenerateContext} context- Returns:
<string>the source code that will be included as initialization code
webpack.InitFragment.getEndContent(context): voidcontext{GenerateContext} context- Returns:
<string>the source code that will be included at the end of the module
webpack.InitFragment.serialize(context): voidcontext{ObjectSerializerContext} context- Returns: {void}
webpack.InitFragment.addToSource(source, initFragments, context): voidsource{Source} sourcesinitFragments{MaybeMergeableInitFragment[]} init fragments context{Context} context- Returns: {Source} source