Skip to content
This repository has been archived by the owner. 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
davejtoews added 3 commits Nov 17, 2016
@whmii
Copy link
Contributor

@whmii 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

@davejtoews davejtoews commented Mar 2, 2017

@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
2 checks passed
2 checks passed
ci/circleci Your tests passed on CircleCI!
Details
hound No violations found. Woof!
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants