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