Integrates Prettier into the stylesheet store for automatic CSS formatting: - Installs prettier v3.7.4 with postcss plugin - Implements formatContent() function using Prettier API - Auto-formats CSS after 500ms of inactivity (debounced) - Prevents infinite loops with isFormatting flag - Ensures consistent indentation and line breaks - Cleans up extra blank lines and formatting issues This ensures the CSS in the Code tab stays clean and properly formatted after reactive edits from TextSettings and PageSettings panels. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
24 lines
490 B
JSON
24 lines
490 B
JSON
{
|
|
"name": "geoproject",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"@melloware/coloris": "^0.25.0",
|
|
"highlight.js": "^11.11.1",
|
|
"pagedjs": "^0.4.3",
|
|
"pinia": "^3.0.4",
|
|
"prettier": "^3.7.4",
|
|
"vue": "^3.5.24"
|
|
},
|
|
"devDependencies": {
|
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
"sass-embedded": "^1.93.3",
|
|
"vite": "^7.2.4"
|
|
}
|
|
}
|