Skip to content

Commit

Permalink
Add Clover to noExternal
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvarner committed Aug 1, 2024
1 parent 93ba5ec commit 901c1a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"build_dev": "NODE_ENV=development remix vite:build",
"dev": "node ./server.js",
"start": "cross-env NODE_ENV=production node ./server.js",
"start_dev": "cross-env NODE_ENV=development node ./server.js",
"typecheck": "tsc",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint --fix ./app/"
},
Expand Down Expand Up @@ -61,4 +62,4 @@
"engines": {
"node": ">=20"
}
}
}
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import SiteMap from "vite-plugin-sitemap";
import { chapterMeta } from "./app/data/chapterMeta";
import { resolve } from "path";

const CHAPTERS = Object.keys(chapterMeta).map((chapter) => {
return `/chapters/${chapter}`;
Expand Down Expand Up @@ -33,8 +34,12 @@ export default defineConfig({
robots: [robotOption],
}),
],
resolve: {
alias: { $fonts: resolve("./public/fonts") },
},
ssr: {
noExternal: [
"@samvera_clover-iiif",
"react-dnd",
"react-dnd-html5-backend",
"dnd-core",
Expand Down

0 comments on commit 901c1a0

Please sign in to comment.