diff --git a/build/build.node.ts b/build/build.node.ts index c9149709412..3a4a00be223 100644 --- a/build/build.node.ts +++ b/build/build.node.ts @@ -1008,10 +1008,11 @@ namespace $ { const pack = $mol_file.absolute( path ) const source = pack.resolve( 'index.html' ) const target = pack.resolve( `-/test.html` ) + const name = '$' + pack.relate( this.root() ).replaceAll( '/', '_' ) let content = source.exists() ? source.text() - : `` + : `` content = content.replace( /(<\/body>|$)/ , `