Fix: Move CSS to root styles/ folder for FoundryVTT compatibility
The issue: CSS was in dist/styles/ but FoundryVTT expects module CSS at the root level or in a standard location. Changes: - Build CSS to styles/scrying-pool.css (root level) instead of dist/styles/ - Update module.json to reference styles/scrying-pool.css - Update .gitignore to track styles/scrying-pool.css - Update build script in package.json This ensures FoundryVTT can find and load the CSS file properly in live sessions. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
# Build output - except the compiled CSS which is required for distribution
|
# Build output - except the compiled CSS which is required for distribution
|
||||||
dist/
|
dist/
|
||||||
!dist/styles/
|
!styles/scrying-pool.css
|
||||||
node_modules/
|
node_modules/
|
||||||
*.zip
|
*.zip
|
||||||
*.lock
|
*.lock
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
"module.js"
|
"module.js"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"dist/styles/scrying-pool.css"
|
"styles/scrying-pool.css"
|
||||||
],
|
],
|
||||||
"languages": [
|
"languages": [
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"description": "FoundryVTT v14 module — Scrying Pool camera visibility control",
|
"description": "FoundryVTT v14 module — Scrying Pool camera visibility control",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "lessc styles/scrying-pool.less dist/styles/scrying-pool.css",
|
"build": "lessc styles/scrying-pool.less styles/scrying-pool.css",
|
||||||
"postinstall": "npm run build",
|
"postinstall": "npm run build",
|
||||||
"watch": "chokidar 'styles/**/*.less' -c 'lessc styles/scrying-pool.less dist/styles/scrying-pool.css'",
|
"watch": "chokidar 'styles/**/*.less' -c 'lessc styles/scrying-pool.less dist/styles/scrying-pool.css'",
|
||||||
"typecheck": "tsc --noEmit",
|
"typecheck": "tsc --noEmit",
|
||||||
|
|||||||
Reference in New Issue
Block a user