loader css code example

Example 1: antialiasing css

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
//Also use webfonts: https://www.fontsquirrel.com/

Example 2: rel css

<link rel="stylesheet" type="text/css" href="style.css">

Example 3: css loader

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: ['to-string-loader', 'css-loader'],
      },
    ],
  },
};

Example 4: css loader

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          'handlebars-loader', // handlebars loader expects raw resource string
          'extract-loader',
          'css-loader',
        ],
      },
    ],
  },
};

Tags:

Misc Example