0

I've configured webpack caching using contenthash:

      {
        test: /\.(png|jpe?g|gif|svg)$/,
        use: [
          {
            loader: 'file-loader',
            options: {
              name: '[name].[contenthash:7].[ext]',
              outputPath: 'images',
              publicPath: '/public/images',
            },
          },
        ],
      },

How do I reference these hashed URLs in my scss files?

Ben McCann
  • 18,548
  • 25
  • 83
  • 101

1 Answers1

0

css-loader handles this. Start url with ~ if using a resolve alias

Ben McCann
  • 18,548
  • 25
  • 83
  • 101