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

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

Open
glyad opened this issue Dec 24, 2016 · 1 comment
Open

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

glyad opened this issue Dec 24, 2016 · 1 comment

Comments

@glyad
Copy link

glyad commented Dec 24, 2016

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
Copy link

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

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

No branches or pull requests

2 participants