I need to add html2canvas JS library in Drupal 8. It is a requirement of Widget Engine module. I have installed other required modules. Libraries modules is installed as well. Where do I have to put html2canvas js library in drupal 8 directory structure to get it working?
This is widget_engine libraries.yml file
make_preview: version: VERSION js: js/widget_engine.make_preview.js: {} css: theme: css/widget_engine.css: {} dependencies: – core/jquery – core/drupal – widget_engine/html2canvas
es6-promise: remote: https://github.com/stefanpenner/es6-promise version: v4.1.0 license: name: MIT url: https://github.com/stefanpenner/es6-promise gpl-compatible: true js: /libraries/es6-promise/dist/es6-promise.auto.min.js: { minified: true } dependencies: – core/jquery
html2canvas: remote: https://github.com/niklasvh/html2canvas version: v0.5.0-beta4 license: name: MIT url: https://github.com/niklasvh/html2canvas gpl-compatible: true js: /libraries/html2canvas/dist/html2canvas.min.js: { minified: true } dependencies: – core/jquery – widget_engine/es6-promise”
I created a libraries directory in main project directory, it does not work. am I missing something? Any help is appreciated.