We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b089586 commit eb69853Copy full SHA for eb69853
templates/build.js
@@ -51,12 +51,24 @@ async function buildModernTemplate() {
51
entryPoints: [
52
'modern/src/docfx.ts',
53
'modern/src/search-worker.ts',
54
+ 'modern/src/search.ts',
55
],
56
external: [
57
'./main.js'
58
59
plugins: [
- sassPlugin()
60
+ sassPlugin(),
61
+ {
62
+ name: 'Exclude `./search` script from bundle',
63
+ setup(build) {
64
+ build.onResolve({ filter: /^\.\/search$/ }, args => {
65
+ return {
66
+ path: './search.min.js',
67
+ external: true
68
+ };
69
+ });
70
+ }
71
72
73
loader,
74
}
0 commit comments