Skip to content

Commit

Permalink
Run checks and added a changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
hankertrix committed Nov 20, 2024
1 parent ddfbc90 commit 452163b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .changeset/proud-peaches-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"vite-plugin-pagefind": patch
---

Add support for the pagefind highlight script,
as well as a new configuration option to support
having the pagefind bundle placed in other places
other than the default `/pagefind/pagefind.js`.
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@
"url": "https://github.com/Hugos68/vite-plugin-pagefind"
},
"homepage": "https://github.com/Hugos68/vite-plugin-pagefind#vite-plugin-pagefind",
"keywords": [
"vite",
"vite-plugin",
"pagefind"
],
"keywords": ["vite", "vite-plugin", "pagefind"],
"publishConfig": {
"access": "public"
},
"files": [
"dist"
],
"files": ["dist"],
"main": "./dist/plugins/pagefind.js",
"exports": {
".": {
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/pagefind-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export default function build() {
return {
build: {
rollupOptions: {
external: [`/${pagefind_url}/pagefind.js`, `/${pagefind_url}/pagefind-highlight.js`],
external: [
`/${pagefind_url}/pagefind.js`,
`/${pagefind_url}/pagefind-highlight.js`,
],
},
},
};
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/pagefind-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export default function dev() {
assetsInclude: ["**/pagefind.js", "**/pagefind-highlight.js"],
build: {
rollupOptions: {
external: [`/${pagefind_url}/pagefind.js`, `/${pagefind_url}/pagefind-highlight.js`],
external: [
`/${pagefind_url}/pagefind.js`,
`/${pagefind_url}/pagefind-highlight.js`,
],
},
},
};
Expand Down

0 comments on commit 452163b

Please sign in to comment.