Skip to content

Commit

Permalink
feat(dev): show different icon in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Jul 6, 2024
1 parent f7f26ae commit b37a7a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added public/icon_dev.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ export default defineConfig({
},
preview: {
port: 4400,
proxy: {
// Differentiate Dev and Prod versions in the plugin picker!
"/penpot/icon.png": {
target: "http://localhost:4400/",
rewrite: (str) => str.replace("icon", "icon_dev"),
},
},
},
base: "/penpot/"
});

0 comments on commit b37a7a6

Please sign in to comment.