how to use webpack to load CDN or external vendor javascript lib in js file, not in html file

externals is not intended to let you do this. It means “don’t compile this resource into the final bundle because I will include it myself”

What you need is a script loader implementation such as script.js. I also wrote a simple app to compare different script loader implementations: link.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)