Skip to content

Commit

Permalink
fix: removes charset=US-ASCII (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Aug 21, 2019
1 parent 6480349 commit 313490a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function getDataUri(file, opts) {
// If the url is SVG, let's compress and use the XML directly
if (file.mime === 'image/svg+xml' && !opts.b64Svg) {
const optimized = await svgo.optimize(file.contents.toString('utf-8'));
return `data:image/svg+xml;charset=US-ASCII,${encodeSvg(optimized.data)}`;
return `data:image/svg+xml,${encodeSvg(optimized.data)}`;
}

// Otherwise we base64 encode the image
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/styles/multi.out.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 313490a

Please sign in to comment.