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

move node-sass to peerDependencies? #28

Closed
tomchentw opened this issue Nov 5, 2014 · 5 comments
Closed

move node-sass to peerDependencies? #28

tomchentw opened this issue Nov 5, 2014 · 5 comments

Comments

@tomchentw
Copy link

Hi, as node-sass currently have some issue with pre-build binaries, I'm wondering that if you have plan to move node-sass to peerDependencies instead of dependencies?

This will allow client to override custom node-sass version without fork the sass-loader project. Just specify "node-sass": "1.0.3" in their package.json and it will load the desired version of node-sass.

@akiran
Copy link
Contributor

akiran commented Nov 17, 2014

@tomchentw, some projects may use other packages like gulp-sass, grunt-sass along with sass-loader, which may depend on different node-sass version. Making node-sass as a peerDependency may cause problem to those projects.

If there is any problem with latest sass-loader (in your case, particular node-sass version dependency ), you can always use previously working sass-loader version until the issues in new version are fixed.

@jhnns
Copy link
Member

jhnns commented Nov 17, 2014

It's a tricky question. There are pro and cons for both sides. The less-loader decided to move it to peerDependencies...

@jhnns
Copy link
Member

jhnns commented Feb 25, 2015

I think we should move it to the peerDependencies. There is a greater benefit for most developers to specify the sass version directly (see recent pull-requests and issues regarding node-sass v2).

Now that peerDependencies will not be deprecated.

@akiran
Copy link
Contributor

akiran commented Feb 25, 2015

yes

jhnns added a commit that referenced this issue Mar 22, 2015
- Moved `node-sass^3.0.0-alpha.0` to `peerDependencies` [#28](#28)
- Using webpack's module resolver as custom importer [#39](#31)
- Add synchronous compilation support for usage with [enhanced-require](https://github.com/webpack/enhanced-require) [#39](#39)
@jhnns jhnns mentioned this issue Mar 22, 2015
@jhnns
Copy link
Member

jhnns commented Mar 22, 2015

done()

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

3 participants