score:0

the way i do it (ex: import fonts from fonts.com) :

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

score:3

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

link to webpack docs: https://webpack.js.org/concepts/loaders/#using-loaders


Related Query

More Query from same tag