-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Make this package implementation-agnostic #186
Conversation
Rather than always loading Node Sass, this now requires users to pass in either Dart Sass or Node Sass as an option to the plugin. Closes adopted-ember-addons#184
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request isn't complete, but I got as far as I could given my limited knowledge of Ember. I'm not sure how to pass a Sass implementation in to the tests--it doesn't look like there's any actual invocation of new EmberApp()
like there is in the README.
2. Ensure you've installed `ember-cli-sass` under `dependencies` in your | ||
`package.json`. | ||
2. Ensure you've installed `ember-cli-sass` and either `sass` or `node-sass` | ||
under `dependencies` in your `package.json`. | ||
|
||
3. Define an `included` function in your app: | ||
```js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like we should be encouraging users to pass in a Sass implementation here, but I'm not sure how.
@nex3 @aexmachina Is this branch My team wants to get away from If there is anything I can help with let me know... |
As far as I know, but I want to emphasize that I'm not an expert in Ember or this package so I can't make any guarantees that I did anything right.
Thanks, done! |
@aexmachina Looks like the latest change @nex3 made, adding the sass implementation to |
I think it'd be good for this addon to install sass into the user's package.json. @jbailey4 do you know how to get an addon to do this? |
Published v9.0.0 👍 |
@aexmachina We could do this via addPackageToProject in a default blueprint. However, the updated README includes instructions on installing |
However, a lot of people just |
@aexmachina Checkout #192 |
Rather than always loading Node Sass, this now requires users to pass
in either Dart Sass or Node Sass as an option to the plugin.
Closes #184