Hey, im trying to add a third party javascript to ...
# suitecommerce
s
Hey, im trying to add a third party javascript to our store. i packed all the scripts in a Module subfolder, created a ns.package.json but for the last step i need some support. I can’t find the distro.json file localy to add the entry point in my case “SC.Shopping.Starter”. im using the Theme-Dev-Tools
s
The theme developer tools cannot be used to add JavaScript to the site. The theme is just the templates and Sass layer. If you want to add a third-party library, you will need to use an extension. (And distro.json is only available in the SCA source code.)
s
🤯 alright thanks Steve so im going for my first extension ^^
s
If you don't know how to write an extension you can follow my tutorial: https://developers.suitecommerce.com/develop-your-first-extension.html
If you're feeling confident, you can jump straight to third-party libraries https://developers.suitecommerce.com/add-a-third-party-javascript-library-to-your-site.html
s
Thanks Steve, guess this gonna fill my weekend 🙂