Problem/Motivation
First off, thanks for creating this module! I might have done something wrong, but when I installed the plotly library via composer according to the instructions in the README/on the project page, plotly.min.js ended up at web/libraries/plotly.js/plotly.min.js. But this didn't load the library, I believe because charts_plotly.libraries.yml has it at web/libraries/plotly.js/dist/plotly.min.js.
Steps to reproduce
Install library via composer according to instructions in README, and disable using the CDN.
Proposed resolution
My workaround was to change the installer-paths key in composer.json to:
"web/libraries/plotly.js/dist": ["npm-asset/plotly.js-dist-min"],
That would be just a documentation change, but unsure if it would be better to change charts_plotly.libraries.yml instead.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork charts_plotly-3557000
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
andileco commentedThanks for that catch, @mwymore. The package.json option was generating the dist directory and the Composer option was not. And it gets a little masked by the CDN option. Please review this MR and let me know what you think.
Comment #5
mwymoreI think it makes sense!
Comment #6
andileco commented