DEV Community

Discussion on: How to configure Webpack 4 or 5 from scratch for a basic website

Collapse
 
quazzzar profile image
quazZzar

Hi,
fix this one please:

{
      // Now we apply rule for images
      test: /\.(png|jpe?g|gif|svg)$/,
      use: [
             {
               // Using file-loader for these files
               loader: "file-loader",

               // In options we can set different things like format
               // and directory to save
               options: {
                 outputPath: 'fonts'
               }
             }
           ]
    }
Collapse
 
antonmelnyk profile image
Anton Melnyk

Thanks, I just noticed what was wrong! Fixed.