refactor: implement script tag approach for library inclusion

- Add script tags to demo-site HTML files for manual development
- Disable CLI inline script injection to prevent duplicate scripts
- Add library serving endpoints to servedev command
- Update build process to auto-copy library to demo-site
- Add CDN URL helpers for future production deployment
- Update .gitignore for generated demo-site files

Fixes .insertr-gate authentication for manual npm run serve workflow
while maintaining clean separation between CLI and manual setups.
This commit is contained in:
2025-09-04 22:16:35 +02:00
parent c777fc92dd
commit ae9d8e4058
14 changed files with 68 additions and 1275 deletions

View File

@@ -7,7 +7,7 @@ set -e
echo "🔄 Library changed, rebuilding..."
# Build the library
# Build the library (this will also copy to demo-site)
cd ../lib
npm run build --silent