I'm confused on where to install 'js' files in Drupal 8. There always seems to be an interpretation issue on location over the years.

in the docs for the module I'm installing - they are saying

'site/all/libraries/abc-js-program/abc.min.js' but I'm thinking those are D7 install instructions?

and I'm not sure when I should forget possible outdated install docs and install as

'/modules/libraries/abc-js-program/abc.min.js'?

thanks,

Jeff

Comments

Jaypan’s picture

Drupal 8 has moved to Composer for managing libraries. I wrote an blog series on it to help understand, as it's a fundamentally different paradigm for managing libraries than Drupal 7: https://www.morpht.com/blog/drupal-and-composer-part-1-understanding-com...