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

Allow the hint.css package in npm to expose CSS #103

Closed
wants to merge 2 commits into from

Conversation

prayagverma
Copy link
Contributor

@prayagverma prayagverma commented Jan 13, 2016

Many modules are starting to expose their css entry files in their package.json files via the style field . This allows tools like npm-css, rework-npm and npm-less to import hint.css CSS from the node_modules directory.

Also this plays well with browserify plugins ( like parcelify) which helps in bundling CSS together from npm packages

@@ -3,6 +3,7 @@
"title": "Hint.css",
"description": "A tooltip library in CSS for your lovely websites.",
"version": "1.3.6",
"style": "hint.css",
Copy link
Owner

@chinchang chinchang Jan 14, 2016

Choose a reason for hiding this comment

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

should be set to hint.min.css IMO. What say?

@prayagverma
Copy link
Contributor Author

prayagverma commented Jan 14, 2016

Replaced hint.css with hint.min.css

Initially referenced the non-minified file so that it would easy to debug in case of conflict with other CSS being included. Read it somewhere, that not to reference minified files in package.json (atleast in the main field , but can't find reference for this practice anywhere in the official npm documentation now).

@prayagverma prayagverma closed this Feb 9, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants