Skip to content

Commit

Permalink
fix(template vite): clean cache on start script (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilowoz authored Mar 6, 2023
1 parent 4eb39d9 commit f7263ce
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sandpack-react/src/templates/node/vite-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ root.render(
"/package.json": {
code: JSON.stringify({
scripts: {
dev: "vite",
dev: "vite --force",
build: "vite build",
preview: "vite preview",
},
Expand Down
2 changes: 1 addition & 1 deletion sandpack-react/src/templates/node/vite-svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default defineConfig({
code: JSON.stringify({
type: "module",
scripts: {
dev: "vite",
dev: "vite --force",
},
devDependencies: {
"@sveltejs/vite-plugin-svelte": "^2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion sandpack-react/src/templates/node/vite-vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default defineConfig({
"/package.json": {
code: JSON.stringify({
scripts: {
dev: "vite",
dev: "vite --force",
build: "vite build",
preview: "vite preview",
},
Expand Down
2 changes: 1 addition & 1 deletion sandpack-react/src/templates/node/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ document.getElementById("app").innerHTML = \`
"/package.json": {
code: JSON.stringify({
scripts: {
dev: "vite",
dev: "vite --force",
build: "vite build",
preview: "vite preview",
},
Expand Down

1 comment on commit f7263ce

@vercel
Copy link

@vercel vercel bot commented on f7263ce Mar 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sandpack-docs – ./website/docs

sandpack-docs-git-main-codesandbox1.vercel.app
sandpack.vercel.app
sandpack-docs-codesandbox1.vercel.app

Please sign in to comment.