Skip to content

Commit 5ae94d0

Browse files
committed
Update documentation and changelog
1 parent c4c83ed commit 5ae94d0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
- Removed: async mode/option
22
([#107](https://github.com/postcss/postcss-import/pull/107))
3+
- Removed: bower is not currently supported, use custom resolver
4+
([#116](https://github.com/postcss/postcss-import/pull/116))
5+
- Changed: custom resolve has more responsibility for paths resolving
6+
([#116](https://github.com/postcss/postcss-import/pull/116))
37

48
# 7.1.3 - 2015-11-05
59

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
This plugin can consume local files, node modules or bower packages.
66
To resolve path of an `@import` rule, it can look into root directory
7-
(by default `process.cwd()`), `web_modules`, `node_modules`, `bower_components`
7+
(by default `process.cwd()`), `web_modules`, `node_modules`
88
or local modules.
99
_When importing a module, it will looks for `index.css` or file referenced in
1010
`package.json` in the `style` field._
@@ -144,7 +144,9 @@ Set to `true` if you want @import rules to parse glob patterns.
144144
Type: `Function`
145145
Default: `null`
146146

147-
You can overwrite the default path resolving way by setting this option, using the `resolve.sync(id, opts)` signature that [resolve.sync](https://github.com/substack/node-resolve#resolvesyncid-opts) has.
147+
You can overwrite the default path resolving way by setting this option.
148+
This function gets `(id, basedir, importOptions)` arguments and returns full path or promise resolving full path.
149+
You can use [resolve](https://github.com/substack/node-resolve) for that.
148150

149151
#### `skipDuplicates`
150152

0 commit comments

Comments
 (0)