Make the create-palette-plugin work correctly on subpath

This commit is contained in:
Andrey Antukh
2026-02-23 17:51:19 +01:00
parent 1229c2a5e5
commit f6259708ca
3 changed files with 14 additions and 7 deletions

View File

@@ -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"
}

View 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"]
}

View File

@@ -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()],