File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,6 @@ class MiniCssExtractPlugin {
116
116
{
117
117
filename : '[name].css' ,
118
118
checkCssChunk : true ,
119
- forceHookRuntime : false ,
120
119
} ,
121
120
options
122
121
) ;
@@ -253,7 +252,7 @@ class MiniCssExtractPlugin {
253
252
const { mainTemplate } = compilation ;
254
253
mainTemplate . hooks . localVars . tap ( pluginName , ( source , chunk , hash ) => {
255
254
const chunkMap = this . getCssChunkObject ( chunk ) ;
256
- if ( this . options . forceHookRuntime || Object . keys ( chunkMap ) . length > 0 ) {
255
+ if ( Object . keys ( chunkMap ) . length > 0 ) {
257
256
const chunkMaps = chunk . getChunkMaps ( ) ;
258
257
const linkHrefPath = mainTemplate . getAssetPath (
259
258
JSON . stringify ( this . options . chunkFilename ) ,
@@ -328,7 +327,7 @@ class MiniCssExtractPlugin {
328
327
} ) ;
329
328
mainTemplate . hooks . requireEnsure . tap ( pluginName , ( source , chunk ) => {
330
329
const chunkMap = this . getCssChunkObject ( chunk ) ;
331
- if ( this . options . forceHookRuntime || Object . keys ( chunkMap ) . length > 0 ) {
330
+ if ( Object . keys ( chunkMap ) . length > 0 ) {
332
331
const checkCssChunk = this . options . checkCssChunk ;
333
332
return Template . asString ( [
334
333
source ,
You can’t perform that action at this time.
0 commit comments