Skip to content

Commit

Permalink
Specify vite cache directory in dev mode as well
Browse files Browse the repository at this point in the history
In #223 the vite cache directory for production build was set to a custom location, in order not to conflict with a vite application in the same project. This commit also applies that configuration for the development server.
  • Loading branch information
bodograumann authored and joshwooding committed Feb 4, 2022
1 parent d18ca99 commit 47ed972
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/storybook-builder-vite/vite-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export async function createViteServer(options: ExtendedOptions, devServer: Serv
const defaultConfig = {
configFile: false,
root,
cacheDir: "node_modules/.vite-storybook",
server: {
middlewareMode: true,
hmr: {
Expand Down

0 comments on commit 47ed972

Please sign in to comment.