mirror of
https://github.com/penpot/penpot.git
synced 2026-03-19 08:53:39 +00:00
✨ Make the create-palette-plugin work correctly on subpath
This commit is contained in:
@@ -5,10 +5,10 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"build:watch": "vite build --watch --mode development",
|
||||
"preview": "vite preview",
|
||||
"init": "concurrently --kill-others --names build,serve \"pnpm run build:watch\" \"pnpm run preview\"",
|
||||
"build": "vite build --emptyOutDir",
|
||||
"watch": "vite build --watch --mode development",
|
||||
"serve": "vite preview",
|
||||
"init": "concurrently --kill-others --names build,serve \"pnpm run watch\" \"pnpm run serve\"",
|
||||
"lint": "eslint .",
|
||||
"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({
|
||||
root: __dirname,
|
||||
server: {
|
||||
port: 4305,
|
||||
port: 4202,
|
||||
host: '0.0.0.0',
|
||||
},
|
||||
|
||||
preview: {
|
||||
port: 4305,
|
||||
port: 4202,
|
||||
host: '0.0.0.0',
|
||||
},
|
||||
plugins: [tsconfigPaths()],
|
||||
|
||||
Reference in New Issue
Block a user