erikras / erikras/react-redux-universal-hot-example

Why separate svg extension in webpack-isomorphic-tools config?

Open
#1,367 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

In [the config](https://github.com/erikras/react-redux-universal-hot-example/blob/master/webpack/webpack-isomorphic-tools.js), you can see that `svg` is configured separately in the `assets`:
```
svg: {
extension: 'svg',
parser: WebpackIsomorphicToolsPlugin.url_loader_parser
},
```
Why is that? When I added it to the `images` `extensions`, the app still seemed to load fine:
```
assets: {
images: {
extensions: [
'jpeg',
'jpg',
'png',
'svg',
'gif'
],
parser: WebpackIsomorphicToolsPlugin.url_loader_parser
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.