Add dist option in libraries
Opened this issue · 0 comments
Natshah commented
For example
"drupal-libraries": {
"library-directory": "docroot/libraries",
"libraries": [
{"name": "slick", "package": "npm-asset/slick-carousel"},
{"name": "ace", "package": "npm-asset/ace-builds"},
{"name": "masonry", "package": "npm-asset/masonry-layout"}
]
},
the masonry module will call masonry directly
but npm-asset/masonry-layout have them in dist
Not sure if we could have something like
{"name": "masonry", "package": "npm-asset/masonry-layout", "preferred-install": "dist"}
or
"drupal-libraries": {
"library-directory": "docroot/libraries",
"preferred-install": "dist"
"libraries": [
{"name": "slick", "package": "npm-asset/slick-carousel"},
{"name": "ace", "package": "npm-asset/ace-builds"},
{"name": "masonry", "package": "npm-asset/masonry-layout"}
]
},