Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

neutrino-middleware-image-loader: Use svg-url-loader for svg rule #171

Merged
merged 2 commits into from
Apr 7, 2017

Conversation

timkelty
Copy link
Contributor

@timkelty timkelty commented Apr 7, 2017

Because base64 encoding SVG content doesn't make sense.

@codecov
Copy link

codecov bot commented Apr 7, 2017

Codecov Report

Merging #171 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #171      +/-   ##
==========================================
+ Coverage   90.66%   90.69%   +0.02%     
==========================================
  Files          36       36              
  Lines         418      419       +1     
==========================================
+ Hits          379      380       +1     
  Misses         39       39
Impacted Files Coverage Δ
packages/neutrino-middleware-image-loader/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f267108...d96a3f1. Read the comment docs.

Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks great, just switch the name of the use back to url.

.use('url')
.loader(urlLoader)
.options({ limit, mimetype: 'image/svg+xml' });
.use('svgUrl')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can actually probably just leave this .use as url. It's still a URL "loader", even though the actual loader is different. The .use call just defines the ID of the loader.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, wondered about that.
Change pushed.

@eliperelman eliperelman merged commit 999e800 into neutrinojs:master Apr 7, 2017
@eliperelman
Copy link
Member

Released in v5.4.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants