Release v4.0.0-rc3: Production deployment fixes and cross-platform compatibility
- Fix production build path resolution for CSS/JS/images - Resolve sidebar navigation layout issues (badges, arrows, spacing) - Fix RTL CSS processing interference with LTR builds - Update dependencies (Bootstrap 5.3.7, Bootstrap Icons 1.13.1, OverlayScrollbars 2.11.0) - Remove CDN integrity attributes to prevent digest mismatches - Add dist/ to .gitignore to exclude build files from repository - Implement smart relative path calculation for all deployment scenarios - Add runtime image path correction for sub-folder deployments - Ensure development and production environment parity - Fix all ESLint compliance issues (prefer-global-this, prefer-string-slice) Major improvements: ✅ Production builds now work identically to development ✅ Images, CSS, and JavaScript load correctly in any deployment structure ✅ Sidebar displays properly with badges and arrow indicators ✅ Zero console errors from CDN resources ✅ Full compatibility with FTP/static hosting platforms
This commit is contained in:
16
package.json
16
package.json
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "admin-lte",
|
||||
"description": "Responsive open source admin dashboard and control panel.",
|
||||
"version": "4.0.0-rc2",
|
||||
"version": "4.0.0-rc3",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"author": "Colorlib <https://colorlib.com>",
|
||||
@@ -24,19 +24,21 @@
|
||||
"js-minify": "terser --compress passes=2 --mangle --comments \"/^!/\" --source-map \"content=dist/js/adminlte.js.map,includeSources,url=adminlte.min.js.map\" --output dist/js/adminlte.min.js dist/js/adminlte.js",
|
||||
"bundlewatch": "bundlewatch --config .bundlewatch.config.json",
|
||||
"lockfile-lint": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
|
||||
"docs-compile": "astro --config src/config/astro.config.mjs build",
|
||||
"docs-compile": "npm run copy-assets && astro --config src/config/astro.config.mjs build",
|
||||
"docs-lint": "astro --config src/config/astro.config.mjs check",
|
||||
"docs-format": "prettier --write \"dist/pages/**/*.html\"",
|
||||
"docs-serve": "astro --config src/config/astro.config.mjs dev --open --port 3000",
|
||||
"docs-format": "prettier --write \"dist/**/*.html\"",
|
||||
"docs-serve": "npm run copy-assets && astro --config src/config/astro.config.mjs dev --open --port 3000",
|
||||
"copy-assets": "rimraf src/html/public && mkdir -p src/html/public && cp -r dist/css src/html/public/ && cp -r dist/js src/html/public/ && cp -r dist/assets src/html/public/",
|
||||
"flatten-build": "cp -r dist/html/* dist/ && rm -rf dist/html && rm -rf dist/.astro",
|
||||
"assets": "node src/config/assets.config.mjs",
|
||||
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel js-lint css-lint docs-lint lockfile-lint",
|
||||
"clean": "rimraf dist",
|
||||
"compile": "npm-run-all docs-compile docs-format assets css js",
|
||||
"compile": "npm-run-all css js assets copy-assets docs-compile docs-format flatten-build",
|
||||
"production": "npm-run-all clean lint compile bundlewatch",
|
||||
"watch": "concurrently \"npm:watch-*\"",
|
||||
"watch-css-main": "nodemon --watch src/scss/ --ext scss --exec \"npm-run-all css-lint css-compile\"",
|
||||
"watch-css-main": "nodemon --watch src/scss/ --ext scss --exec \"npm-run-all css-lint css-compile copy-assets\"",
|
||||
"watch-css-dist": "nodemon --watch dist/css/ --ext css --ignore \"dist/css/*.rtl.*\" --exec \"npm run css-rtl\"",
|
||||
"watch-js-main": "nodemon --watch src/ts/ --ext ts --exec \"npm-run-all js-lint js-compile\"",
|
||||
"watch-js-main": "nodemon --watch src/ts/ --ext ts --exec \"npm-run-all js-lint js-compile copy-assets\"",
|
||||
"watch-assets": "nodemon --watch src/assets/ --exec \"npm run assets\""
|
||||
},
|
||||
"keywords": [
|
||||
|
||||
Reference in New Issue
Block a user