Skip to content

Commit

Permalink
Add documentation on installing with npm
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmchardy committed Sep 12, 2015
1 parent 9925ea3 commit 0c9b175
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
### [0.0.2] - 2015-09-11
### [0.1.1] - 2015-09-11
#### Added
- Documentation on installing with npm

### [0.1.0] - 2015-09-11
#### Added
- Documentation
- Changelog
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@
[ci-img]: https://travis-ci.org/shutterstock/postcss-copy-assets.svg
[ci]: https://travis-ci.org/shutterstock/postcss-copy-assets

## Installation
```shell
$ npm install postcss-copy-assets
```

## Example
### Usage
```js
var copyAssets = require('postcss-copy-assets');
postcss(
[
require('postcss-copy-assets')({ base: 'dist'})
copyAssets({ base: 'dist'})
],
{
to: 'dist/css/foo.css'
Expand Down Expand Up @@ -76,9 +82,10 @@ The base path where the plugin will copy images, fonts, and other assets it find
This plugin requires the `to` option to be passed to `postcss` itself. This specifies where the transformed CSS will be written to.

```js
var copyAssets = require('postcss-copy-assets');
postcss(
[
require('postcss-copy-assets')({ base: 'base/dir/to/copy/assets'})
copyAssets({ base: 'base/dir/to/copy/assets'})
],
{
to: 'path/to/transformed/file.css'
Expand Down

0 comments on commit 0c9b175

Please sign in to comment.