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

Add beginner instructions to the README. #200

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ ember-cli-sass uses [Dart Sass][] to preprocess your ember-cli app's files and p
ember install ember-cli-sass
```

### Use SASS in an Ember App

After you've installed `ember-cli-sass` in an app, the next step is to create a SASS file at `app/styles/app.scss`.
This is where your new styles can go. Give it a try! If you are having trouble seeing your work
in the served app, try restarting your local server.

It's important to know that you can use more than just the one `app.scss` for your work.
To split your styles into multiple SASS files, create more `.scss` files in the
`styles` folder. Then in your `app.scss`, add an `@import 'yourfilename';` to the top.

### Addon Development

If you want to use ember-cli-sass in an addon and you want to distribute the compiled CSS it must be installed as a `dependency` so that `addon/styles/addon.scss` is compiled into `dist/assets/vendor.css`. This can be done using:
Expand Down