Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Add style property to package.json, allowing for easier imports. #514

Merged
merged 4 commits into from May 12, 2017

Conversation

davejtoews
Copy link
Contributor

@davejtoews davejtoews commented Nov 15, 2016

When installed via npm, a style property in package.json allows this module to be easily imported when using tools such as npm-sass or sass-module-importer.

Apparently the "style" key is not a standard, but it is a growing trend. Here's a StackOverflow thread on the subject: http://stackoverflow.com/questions/32037150/style-field-in-package-json

Add style property to package.json, allowing for easier imports.
@davejtoews davejtoews changed the title Update package.json Add style property to package.json, allowing for easier imports. Nov 15, 2016
@whmii
Copy link
Contributor

whmii commented Mar 2, 2017

@davejtoews the StackOverflow link you cited was from 2015 and mentions…

We're hoping to get this standardized at some point…

Is this actually used by any tooling?

@davejtoews
Copy link
Contributor Author

@whmii In addition to npm-sass and sass-module-importer mentioned above, it's also used by npm-css, rework-npm, npm-less, parcelify, and diamond, and It's been flagged as a "nice-to-have" feature in webpack's css-loader.

I made a similar PR on Bourbon, and you can see the discussion there.

@whmii whmii merged commit 5f15317 into thoughtbot:master May 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants