jantimon / jantimon/iconfont-webpack-plugin

Prints unicode character instead of icon

Open
#48 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
111
Forks
34
PR merge metrics
No merged PRs in 30d

Description

Using the default config suggested in the `README`:
```
const IconFontPlugin = require('iconfont-webpack-plugin')
...
loader: 'postcss-loader',
options: {
plugins: loader => [new IconFontPlugin(loader)],
},
````

`font-icon: url('../../static/images/icons/search.svg');`

I am seeing the unicode character instead of the referenced svg as the content. Please advise on how I can fix to see the icon or what steps I can take to debug.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the default configuration in README and the referenced static/images/icons/search.svg declaration. Reproduce the output and inspect the generated CSS and font handling to determine why the Unicode character is rendered instead of the SVG icon. Done means the referenced search icon displays correctly and the behavior is covered by a reproducible verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.