Skip to content

Commit

Permalink
fix(vite): properly reload stylesheet after branch change
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber committed Jul 29, 2024
1 parent 1b7d590 commit f26acc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions adminSiteServer/appClass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ export class OwidAdminApp {
// https://vitejs.dev/guide/ssr
const { createServer } = await import("vite")
const vite = await createServer({
configFile: "vite.config-site.mts",
css: { devSourcemap: true },
server: { middlewareMode: true },
appType: "custom",
base: "/",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"refreshPageviews": "tsx --tsconfig tsconfig.tsx.json db/refreshPageviewsFromDatasette.ts",
"revertLastDbMigration": "tsx --tsconfig tsconfig.tsx.json node_modules/typeorm/cli.js migration:revert -d db/dataSource.ts",
"startAdminServer": "node --enable-source-maps ./itsJustJavascript/adminSiteServer/app.js",
"startAdminDevServer": "tsx watch --tsconfig tsconfig.tsx.json adminSiteServer/app.tsx",
"startAdminDevServer": "tsx watch --ignore '**.mjs' --tsconfig tsconfig.tsx.json adminSiteServer/app.tsx",
"startLocalCloudflareFunctions": "wrangler pages dev localBake --compatibility-date 2023-10-09",
"startDeployQueueServer": "node --enable-source-maps ./itsJustJavascript/baker/startDeployQueueServer.js",
"startLernaWatcher": "lerna watch --scope '@ourworldindata/*' -- lerna run build --scope=\\$LERNA_PACKAGE_NAME --include-dependents",
Expand Down

0 comments on commit f26acc3

Please sign in to comment.