zavoloklom / material-design-iconic-font

Material Design Iconic Font and CSS toolkit
http://zavoloklom.github.io/material-design-iconic-font/
Creative Commons Attribution Share Alike 4.0 International
1.42k stars 197 forks source link

Problem with "main" property in package.json #111

Open glyad opened 7 years ago

glyad commented 7 years ago

The main property is defined as

"main": [ "./dist/css/", "./dist/fonts/" ]

That isn't compliant to a standard. The "main" defines an entry point of the package or a root component. The standard value must be a string value, not an array. The WebPack loader has a problem with it (crash!).

The fix is following: "main": "dist/css/material-design-iconic-font.css". It just works, because references to fonts are relative.

Thank you,

wayfar3r commented 6 years ago

+1 on this, though it's better to put "dist/css/material-design-iconic-font.min.css" in there to use minified version