Varbase Libraries
Drupal Libraries Management
The NPM/Yarn Method
Available Drupal Libraries Sync Commands
Command
Description
Adding New Libraries
1. Add to package.json Dependencies
{
"dependencies": {
"npm-package-to-start-using": "^1.0.0"
}
}2. Configure Library Mapping
3. Install and Sync
Example:
Removing No Longer Needed Libraries
1. Remove from the package.json file.
2. Clean Up Files
Troubleshooting
Libraries Not Appearing
Permission Issues
Switch from Asset Packagist to NPM/Yarn
Migrating Existing Projects to NPM/YARN with drupal-libraries-syncThe Composer Method (Deprecated)Last updated