How to add a JS library and a JS script that makes use of that library?
I’m trying to use Chroma library in Magento and so far I did the following two things: Created a app/design/frontend/Vendor/Theme/requirejs-config.js with the following content: var config = { deps: [ ‘js/chroma.min’, ‘js/_sample’, ] }; and a _sample.js file in app/design/frontend/Vendor/Theme/web/js/_sample.js… Read More »How to add a JS library and a JS script that makes use of that library?