File tree 1 file changed +15
-3
lines changed
1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,24 @@ async function buildModernTemplate() {
51
51
entryPoints : [
52
52
'modern/src/docfx.ts' ,
53
53
'modern/src/search-worker.ts' ,
54
+ 'modern/src/search.ts' ,
54
55
] ,
55
56
external : [
56
57
'./main.js'
57
58
] ,
58
59
plugins : [
59
- sassPlugin ( )
60
+ sassPlugin ( ) ,
61
+ {
62
+ name : 'Exclude `./search` script from bundle' ,
63
+ setup ( build ) {
64
+ build . onResolve ( { filter : / ^ \. \/ s e a r c h $ / } , args => {
65
+ return {
66
+ path : './search.min.js' ,
67
+ external : true
68
+ } ;
69
+ } ) ;
70
+ }
71
+ }
60
72
] ,
61
73
loader,
62
74
}
@@ -113,8 +125,8 @@ function copyToDist() {
113
125
}
114
126
115
127
function buildContent ( ) {
116
- exec ( `dotnet run -f net7 .0 --project ../src/docfx/docfx.csproj -- metadata ${ project } /docfx.json` )
117
- exec ( `dotnet run -f net7 .0 --project ../src/docfx/docfx.csproj --no-build -- build ${ project } /docfx.json` )
128
+ exec ( `dotnet run -f net8 .0 --project ../src/docfx/docfx.csproj -- metadata ${ project } /docfx.json` )
129
+ exec ( `dotnet run -f net8 .0 --project ../src/docfx/docfx.csproj --no-build -- build ${ project } /docfx.json` )
118
130
119
131
function exec ( cmd ) {
120
132
if ( spawnSync ( cmd , { stdio : 'inherit' , shell : true } ) . status !== 0 ) {
You can’t perform that action at this time.
0 commit comments