Skip to content

Commit edd649e

Browse files
committed
Add documentation and changelog
1 parent 9723971 commit edd649e

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ See [resolve option](https://github.com/postcss/postcss-import#resolve) for more
1313
([#130](https://github.com/postcss/postcss-import/pull/130))
1414
- Changed: glob resolver do not add `moduleDirectories` and parse all uri as glob patterns
1515
([#131](https://github.com/postcss/postcss-import/pull/131))
16+
- Added: support custom `load` option
17+
([#144](https://github.com/postcss/postcss-import/pull/144))
18+
- Removed: `encoding` option. Encoding can be specified in custom `load` option
19+
([#144](https://github.com/postcss/postcss-import/pull/144))
1620

1721
# 7.1.3 - 2015-11-05
1822

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,6 @@ Default: `undefined`
118118

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

121-
#### `encoding`
122-
123-
Type: `String`
124-
Default: `utf8`
125-
126-
Use if your CSS is encoded in anything other than UTF-8.
127-
128121
#### `onImport`
129122

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

145+
#### `load`
146+
147+
Type: `Function`
148+
Default: null
149+
150+
You can overwrite the default loading way by setting this option.
151+
This function gets `(filename, importOptions)` arguments and returns content or promised content.
152+
152153
#### `skipDuplicates`
153154

154155
Type: `Boolean`

0 commit comments

Comments
 (0)