How to add an external javascript CDN in sage 9

I’m not sure how this question is Sage-specific. You add scripts with wp_enqueue_script() just like you would with any other theme.

If you need access to it in your local scripts, you can add it to externals in your webpack config so that webpack won’t attempt to import it.

1 Like