chinchang / hint.css

A CSS only tooltip library for your lovely websites.
https://kushagra.dev/lab/hint/
MIT License
8.42k stars 701 forks source link

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

Closed prayagverma closed 8 years ago

prayagverma commented 8 years ago

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

prayagverma commented 8 years ago

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).