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

后端 未结 6 1955
北恋
北恋 2020-12-05 12:47

I am using react starter kit for client side programming. It uses react and webpack. No index.html or any html to edit, all js files. My question is if I want to load a vend

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 13:39

    There is one html file that is definitely being used to serve to users with your js bundle attached. Probably you could attach the script tag into that html file

提交回复
热议问题