Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some Content-Types to assetsNotGzipped #515

Closed
gmetais opened this issue May 7, 2015 · 1 comment
Closed

Add some Content-Types to assetsNotGzipped #515

gmetais opened this issue May 7, 2015 · 1 comment
Milestone

Comments

@gmetais
Copy link
Contributor

gmetais commented May 7, 2015

Hi Maciej!

Here are some assets types that could be added to the metric assetsNotGzipped:

  • JSON: (entry.isJSON)
  • SVG: (entry.contentType === "image/svg+xml")
  • TTF: (entry.contentType === "application/x-font-ttf" || entry.contentType === "font/ttf")
  • XML: (entry.contentType === ''text/xml" || entry.contentType === "application/xml")
  • favicon: (entry.contentType === "image/x-icon" || entry.contentType === "image/vnd.microsoft.icon")

https://github.com/macbre/phantomas/blob/devel/modules/staticAssets/staticAssets.js#L48-L54

Improves 48ab0d1

@gmetais
Copy link
Contributor Author

gmetais commented May 27, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants