jantimon / jantimon/iconfont-webpack-plugin
Prints unicode character instead of icon
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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