You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AdminLTE v4.0.0-rc3 - Production Deployment & Cross-Platform Compatibility
This release resolves critical production deployment issues and ensures consistent behavior between development and production environments across different deployment scenarios.
🚀 Production Deployment Fixes
Path Resolution System
Smart Path Resolution: Implemented intelligent relative path calculation for all assets
CSS/JS paths automatically adjust based on page depth (e.g., ./css/ for root, ../css/ for sub-pages)
Image paths dynamically corrected at runtime for any deployment structure
Works seamlessly for root deployment, sub-folder deployment, and CDN hosting
RTL CSS Processing Fix
PostCSS Configuration: Fixed rtlcss plugin interference with LTR builds
rtlcss now only runs during RTL-specific builds (NODE_ENV=RTL)
Prevents automatic left/right property flipping in standard production builds
Maintains separate .rtl.css files for right-to-left language support
PopperJS: v2.11.8 (confirmed latest - no change needed)
Integrity Attribute Removal
SRI-Free CDN Loading: Removed integrity attributes from all CDN resources
Prevents "Failed to find a valid digest" console errors
Allows CDN providers to update files without breaking existing links
Maintains crossorigin="anonymous" for security while removing brittle SRI checks
🛠️ Build System Enhancements
Development vs Production Parity
Unified Asset Pipeline: Both dev and production now use identical asset resolution
Development copies fresh CSS/JS to src/html/public/ for hot-reloading
Production builds CSS/JS to dist/css/ and dist/js/ then flattens structure
Smart path resolution ensures consistent behavior in both environments
Git Repository Cleanup
Production Build Distribution: Added complete dist/ folder to repository
Provides ready-to-use production files for immediate deployment
Simplifies distribution and CDN access via jsDelivr
Enables direct download without requiring Node.js build environment
Deployment Guide
Quick Start
# Build for production
npm run production
# Deploy via FTP (upload entire dist/ folder contents)# Or serve locally for testingcd dist && python3 -m http.server 8080
Deployment Scenarios
Root Deployment: Upload dist/ contents to public_html/ or equivalent
Sub-folder Deployment: Upload dist/ contents to public_html/admin/ or similar
Static Host Deployment: Point build directory to dist/ in your hosting platform
CDN Integration: Upload assets to CDN and update paths as needed
📋 Migration Notes
From 4.0.0-rc2 to 4.0.0-rc3
Automatic Updates (No Action Required):
Path resolution works automatically in all deployment scenarios
Image loading is fixed without any HTML changes needed
Sidebar navigation displays correctly with proper spacing and indicators
All CDN resources load without console errors
Recommended Actions:
Remove any manual path fixes you may have implemented
Update your deployment process to use the new dist/ structure
Verify image loading in your specific deployment environment
Test both development (npm run dev) and production builds
Breaking Changes:
None - this release is fully backward compatible with existing HTML and CSS
Download: Use npm: npm install [email protected] or download the source code below.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
AdminLTE v4.0.0-rc3 - Production Deployment & Cross-Platform Compatibility
This release resolves critical production deployment issues and ensures consistent behavior between development and production environments across different deployment scenarios.
🚀 Production Deployment Fixes
Path Resolution System
./css/
for root,../css/
for sub-pages)RTL CSS Processing Fix
rtlcss
plugin interference with LTR buildsrtlcss
now only runs during RTL-specific builds (NODE_ENV=RTL
).rtl.css
files for right-to-left language supportImage Loading Resolution
/assets/img/...
) to relative paths🎨 UI/Navigation Improvements
Sidebar Navigation Fixed
sidebar-open
class to all layouts for consistent stylingCross-Device Consistency
.sidebar-menu .nav-link { width: 100%; }
for better UX📦 CDN & Dependencies
Updated to Latest Stable Versions
Integrity Attribute Removal
integrity
attributes from all CDN resourcescrossorigin="anonymous"
for security while removing brittle SRI checks🛠️ Build System Enhancements
Development vs Production Parity
src/html/public/
for hot-reloadingdist/css/
anddist/js/
then flattens structureGit Repository Cleanup
dist/
folder to repositoryDeployment Guide
Quick Start
Deployment Scenarios
dist/
contents topublic_html/
or equivalentdist/
contents topublic_html/admin/
or similardist/
in your hosting platform📋 Migration Notes
From 4.0.0-rc2 to 4.0.0-rc3
Automatic Updates (No Action Required):
Recommended Actions:
dist/
structurenpm run dev
) and production buildsBreaking Changes:
Download: Use npm:
npm install [email protected]
or download the source code below.This discussion was created from the release AdminLTE v4.0.0-rc3.
Beta Was this translation helpful? Give feedback.
All reactions