Skip to content

Add Ember.js and Webpack examples #14

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

Merged
merged 1 commit into from
Nov 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,45 @@ simple-css-reset
[![Build Status](https://travis-ci.org/mirego/simple-css-reset.svg?branch=master)](https://travis-ci.org/mirego/simple-css-reset)

A simple, no-nonsense CSS reset stylesheet.

## Installation

```bash
$ npm install --save simple-css-reset
```

## Usage

### Ember.js

You need the `ember-cli-node-assets` package to be able to import the CSS file into your application. Then you need to add the reset file to the `ember-cli` build file.

```bash
$ npm install --save-dev ember-cli-node-assets
```

```js
// ember-cli-build.js
module.exports = function(defaults) {
const app = new EmberApp(defaults, {
nodeAssets: {
'simple-css-reset': {
import: ['reset.css']
}
}
});
};
```

### Webpack

Assuming you have properly installed and configured [CSS loader](https://github.com/webpack-contrib/css-loader), you can simply require the `reset.css` file within the entry point of your app.

```bash
$ npm install --save-dev css-loader
```

```js
// index.js
import 'simple-css-reset/reset.css';
```