0

This is the rule for the image loader

      {
        test: /\.(png|svg|jpg|gif)$/,
        use: [
          'file-loader'
        ]
      },

This is the rule for the html loader

test: /\.html$/,
        use: [
          {
            loader: "html-loader",
            options: {
              minimize: true
            }
          }

every other images are loaded fine, except for the inline background images

<div class="ms__slide" style="background-image: url('../images/slider-bg.jpg')">

      </div>
Vadim Surugiu
  • 55
  • 1
  • 11

1 Answers1

0

Add also a css loader:

npm install --save-dev css-loader

Somewhere in rule section:

{
    test: /\.css$/,
    loader: 'css-loader' 
}
tom
  • 9,550
  • 6
  • 30
  • 49