Updating Frontend Dependencies
1. Updating Frontend Dependencies
Do not manually download, beautify, chmod, or replace Bootstrap/jQuery vendor files. The former instructions were obsolete and unsafe.
1.1. Source of truth
package.jsonandpackage-lock.json— dependency versionswebpack.mix.jsand module Mix configs — asset compilation/copyingresources/js/andresources/css/— source assets
1.2. Update process
Update dependencies through npm on a dedicated branch
Review release notes and breaking changes
Run
npm installand commit the lockfile changeBuild with
npm run devandnpm run prodTest Base MVC CRUD, admin navigation, DataTables, Livewire, and affected module UIs
1.3. Constraints
Bootstrap 4, jQuery, Vue 3, Livewire 3, Alpine, and Tailwind coexist. A dependency upgrade can affect multiple generations of UI, so avoid opportunistic major-version upgrades.
@Christian Schramm Hattest du nicht gesagt, dass du mehrere Dateien zu einer zusammengefasst hast? Das fehlt hier evtl noch. Ansonsten sehr gut!