Have you read the Contributing Guidelines on issues?
Prerequisites
Description
This bug seems to be introduced since this 95955ec commit (canary build 0.0.0-4414).
Steps to reproduce
See demo: https://stackblitz.com/edit/github-nbaeqd-js3wpw?file=src%2Fcomponents%2FHomepageFeatures.js
First, create a component with CSS inline image:
.demo {
background-image: url('../../static/img/undraw_docusaurus_tree.svg');
}
<div className={styles.demo}>Inspect me</div>
Then inspect the element in your browser
Expected behavior
Inline SVG should be embedded correctly in Base64 format. As how previous versions did.
Actual behavior
The image is now no longer embedded but generated with a hash filename:

If you access this file in the browser you will get the following error:

The actual content of this image is:
export default __webpack_public_path__ + "assets/images/undraw_docusaurus_tree-1a17af96e3c13c3b6a5c862c0e13d742.svg";
Your environment
- Public source code: No public repo. Please see the demo above
- Public site URL: N/A
- Docusaurus version used: 0.0.0-4414
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Chrome Version 97.0.4692.71 (Official Build) (arm64).
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS 12.1 (21C52)
Reproducible demo
https://stackblitz.com/edit/github-nbaeqd-js3wpw?file=src%2Fcomponents%2FHomepageFeatures.js
Self-service
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.Description
This bug seems to be introduced since this 95955ec commit (canary build 0.0.0-4414).
Steps to reproduce
See demo: https://stackblitz.com/edit/github-nbaeqd-js3wpw?file=src%2Fcomponents%2FHomepageFeatures.js
First, create a component with CSS inline image:
Then inspect the element in your browser
Expected behavior
Inline SVG should be embedded correctly in Base64 format. As how previous versions did.
Actual behavior
The image is now no longer embedded but generated with a hash filename:
If you access this file in the browser you will get the following error:
The actual content of this image is:
Your environment
Reproducible demo
https://stackblitz.com/edit/github-nbaeqd-js3wpw?file=src%2Fcomponents%2FHomepageFeatures.js
Self-service