JS Custom Module

This is an example module which shows the implementation of integration of your Javascript files (JS, JSx, etc.)

All you need to do is edit the my.js file and add your javascript code.

If you want to add more js files, keep adding them in the same location of my.js and add it in the js_module.libraries.yml file.

And you’re all ready to enjoy your custom JS on your Drupal site without any hassle.


Source: https://drupal.org/project/project_module/feed/all