Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about webpack-html-loader

Read more about webpack-html-loader

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - webpack-html-loader

Webpack 5 use html-loader to load svgs

I recently upgraded to Webpack 5 and my html-loader no longer loads svg files and inlines them. Here's my svg rule in webpack { test: /\.svg$/, use: [ { loader: 'html-loader', op...
test-img

Christian Pavilonis

javascript

svg

webpack

webpack-5

webpack-html-loader

Votes: 0

Answers: 3

Latest Answer

svg-inline-loader can achieve the same (confirmed to work). I have listed other options for loading SVGs at https://survivejs.com/webpack/loading/images/#loading-svgs.
test-img

Juho Vepsäläinen

saving SCSS change causes webpack fail to load image file from HTML img tag (Webpack 5)

I just get this problem recently , but I can't figure out what is wrong with my webpack setting. Every time I save my SCSS files (./src/scss/) change, and webpack do refresh the page (it is hot module...
test-img

Mizok.H

webpack

webpack-dev-server

sass-loader

webpack-html-loader

webpack

webpack-dev-server

sass-loader

webpack-html-loader

Votes: 0

Answers: 1

Latest Answer

I've encountered the same situation. The problem is in output.clean: true option. You can remove it or set to false. E.g. I've changed my start command in package.json like this "start": &qu...
test-img

Roman Matusevich

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved