Open filzrev opened 3 days ago
This PR intended to support search.min.js script customization.
search.min.js
Currently docfx modern template bundle scripts to docfx.min.js. So it can't customize search scripts with custom template.
modern
docfx.min.js
This PR exclude search.ts file from bundling by adding following settings
search.ts
modern/src/search.ts' as
to separately create
./search
external
true
esbuild bundle
path
./search.min.js
Additionally this PR fix .NET runtime version to .NET 8 (that used by npm run start)
npm run start
This PR intended to support
search.min.js
script customization.Currently docfx
modern
template bundle scripts todocfx.min.js
. So it can't customize search scripts with custom template.This PR exclude
search.ts
file from bundling by adding following settingsmodern/src/search.ts' as
entryPointsto separately create
search.min.js`../search
import statement settings by custom esbuild plugin.external
property totrue
to exclude fromesbuild bundle
path
from./search
to./search.min.js
Additionally this PR fix .NET runtime version to .NET 8 (that used by
npm run start
)