Skip to content

Commit 9a21885

Browse files
feat(website): lazy load DocSearch styles
1 parent 79a972b commit 9a21885

5 files changed

Lines changed: 5 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"sideEffects": false,
1212
"files": [
1313
"dist/",
14+
"style/",
1415
"button.js",
15-
"modal.js",
16-
"style.js"
16+
"modal.js"
1717
],
1818
"source": "src/index.ts",
1919
"types": "dist/esm/index.d.ts",

style/button.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@docsearch/css/dist/button.css';
File renamed without changes.

style/modal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@docsearch/css/dist/modal.css';

style/variables.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@docsearch/css/dist/_variables.css';

0 commit comments

Comments
 (0)