The way I do it (ex: import fonts from :

  • create a css file,
  • import external css in local css file
  • import local css file in js


You will need to add css-loader and style-loader to your dev dependencies in package.json

Link to webpack docs:

Related Query

More Query from same tag