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

Look for "sass" property in package.json #3

Closed
rahatarmanahmed opened this issue Feb 22, 2016 · 2 comments
Closed

Look for "sass" property in package.json #3

rahatarmanahmed opened this issue Feb 22, 2016 · 2 comments

Comments

@rahatarmanahmed
Copy link
Contributor

I've noticed a few SASS projects use both a style and sass property in their package.json's. Seems like the style property points to the compiled CSS and the sass property points to the source SASS.

Perhaps npm-sass could look for both, prioritizing the sass property if it finds it?

@lennym
Copy link
Owner

lennym commented Feb 23, 2016

Thanks for the suggestion @rahatarmanahmed. Do you have an example of a project which uses a sass property in package.json for me to test against?

Meanwhile, if you wanted to make a PR to the code at https://github.com/lennym/npm-sass/blob/master/lib/importer.js#L18-L20 to affect this change that would be super helpful.

@rahatarmanahmed
Copy link
Contributor Author

Here's some examples:

...I could have sworn I've seen more libraries do this, but I can't seem to find them.

I still think it's a good idea, since it allows a package to give both compiled and source SASS, and npm-sass can pick up on the source when it's available. I can definitely make a PR to make it happen, I just wanted to throw the idea out there to see how well it'd be received.

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