Skip to content

Commit 834fb1e

Browse files
authored
Merge pull request #14 from mirego/feature/add-usage-examples
Add Ember.js and Webpack examples
2 parents 71f8719 + 6514907 commit 834fb1e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

+42
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,45 @@ simple-css-reset
44
[![Build Status](https://travis-ci.org/mirego/simple-css-reset.svg?branch=master)](https://travis-ci.org/mirego/simple-css-reset)
55

66
A simple, no-nonsense CSS reset stylesheet.
7+
8+
## Installation
9+
10+
```bash
11+
$ npm install --save simple-css-reset
12+
```
13+
14+
## Usage
15+
16+
### Ember.js
17+
18+
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.
19+
20+
```bash
21+
$ npm install --save-dev ember-cli-node-assets
22+
```
23+
24+
```js
25+
// ember-cli-build.js
26+
module.exports = function(defaults) {
27+
const app = new EmberApp(defaults, {
28+
nodeAssets: {
29+
'simple-css-reset': {
30+
import: ['reset.css']
31+
}
32+
}
33+
});
34+
};
35+
```
36+
37+
### Webpack
38+
39+
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.
40+
41+
```bash
42+
$ npm install --save-dev css-loader
43+
```
44+
45+
```js
46+
// index.js
47+
import 'simple-css-reset/reset.css';
48+
```

0 commit comments

Comments
 (0)