Skip to content

Commit

Permalink
Add documentation and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Jan 9, 2016
1 parent 9723971 commit edd649e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ See [resolve option](https://github.com/postcss/postcss-import#resolve) for more
([#130](https://github.com/postcss/postcss-import/pull/130))
- Changed: glob resolver do not add `moduleDirectories` and parse all uri as glob patterns
([#131](https://github.com/postcss/postcss-import/pull/131))
- Added: support custom `load` option
([#144](https://github.com/postcss/postcss-import/pull/144))
- Removed: `encoding` option. Encoding can be specified in custom `load` option
([#144](https://github.com/postcss/postcss-import/pull/144))

This comment has been minimized.

Copy link
@MoOx

MoOx Jan 9, 2016

Contributor

Can you show an explicit example so user don't have to think? They don't like to...


# 7.1.3 - 2015-11-05

Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,6 @@ Default: `undefined`

An array of plugins to be applied on each imported file.

#### `encoding`

Type: `String`
Default: `utf8`

Use if your CSS is encoded in anything other than UTF-8.

#### `onImport`

Type: `Function`
Expand All @@ -149,6 +142,14 @@ You can overwrite the default path resolving way by setting this option.
This function gets `(id, basedir, importOptions)` arguments and returns full path, array of paths or promise resolving paths.
You can use [resolve](https://github.com/substack/node-resolve) for that.

#### `load`

Type: `Function`
Default: null

You can overwrite the default loading way by setting this option.
This function gets `(filename, importOptions)` arguments and returns content or promised content.

#### `skipDuplicates`

Type: `Boolean`
Expand Down

0 comments on commit edd649e

Please sign in to comment.