mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
✨ Make the create-palette-plugin work correctly on subpath
This commit is contained in:
parent
1229c2a5e5
commit
f6259708ca
@ -5,10 +5,10 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build --emptyOutDir",
|
||||||
"build:watch": "vite build --watch --mode development",
|
"watch": "vite build --watch --mode development",
|
||||||
"preview": "vite preview",
|
"serve": "vite preview",
|
||||||
"init": "concurrently --kill-others --names build,serve \"pnpm run build:watch\" \"pnpm run preview\"",
|
"init": "concurrently --kill-others --names build,serve \"pnpm run watch\" \"pnpm run serve\"",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"test": "vitest"
|
"test": "vitest"
|
||||||
}
|
}
|
||||||
|
|||||||
8
plugins/apps/create-palette-plugin/public/manifest.json
Normal file
8
plugins/apps/create-palette-plugin/public/manifest.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"name": "Create Palette from library",
|
||||||
|
"description": "Create a board with all the colors in the local library",
|
||||||
|
"code": "plugin.js",
|
||||||
|
"version": 2,
|
||||||
|
"icon": "assets/icon.png",
|
||||||
|
"permissions": ["content:read", "content:write", "library:read"]
|
||||||
|
}
|
||||||
@ -5,12 +5,11 @@ import tsconfigPaths from 'vite-tsconfig-paths';
|
|||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
root: __dirname,
|
root: __dirname,
|
||||||
server: {
|
server: {
|
||||||
port: 4305,
|
port: 4202,
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
},
|
},
|
||||||
|
|
||||||
preview: {
|
preview: {
|
||||||
port: 4305,
|
port: 4202,
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
},
|
},
|
||||||
plugins: [tsconfigPaths()],
|
plugins: [tsconfigPaths()],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user