File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -536,7 +536,7 @@ async function compile({
536536
537537 manager . preset . preEvaluate ( manager , updatedModules ) ;
538538
539- if ( ! manager . webpackHMR && ! manager . preset . htmlDisabled ) {
539+ if ( ! manager . webpackHMR ) {
540540 const htmlModulePath = templateDefinition
541541 . getHTMLEntries ( configurations )
542542 . find ( p => modules [ p ] ) ;
@@ -557,7 +557,7 @@ async function compile({
557557 manager . clearCompiledCache ( ) ;
558558 }
559559
560- if ( ! firstLoad || process . env . LOCAL_SERVER ) {
560+ if ( ! manager . preset . htmlDisabled || ! firstLoad ) {
561561 // The HTML is loaded from the server as a static file, no need to set the innerHTML of the body
562562 // on the first run.
563563 document . body . innerHTML = body ;
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export default function initialize() {
3737 ] ,
3838 { } ,
3939 {
40+ htmlDisabled : true ,
4041 setup : manager => {
4142 const packageJSON = manager . configurations . package ;
4243
You can’t perform that action at this time.
0 commit comments