Skip to content

Commit

Permalink
Add info regarding relative paths in importFrom (#42)
Browse files Browse the repository at this point in the history
* Add info regarding relative paths in `importFrom`

* Update README.md

---------

Co-authored-by: Romain Menke <11521496+romainmenke@users.noreply.github.com>
  • Loading branch information
silverwind and romainmenke authored Mar 28, 2024
1 parent ab0fdc5 commit 88970d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ where Custom Properties should be imported from by using an `importFrom` key.
These imports might be CSS, JS, and JSON files, functions, and directly passed
objects.

The plugin resolves relative paths from the current working directory
which may not work in monorepos, in which case it is best to pass only absolute
paths to the plugin.

```js
// .stylelintrc
{
Expand Down

0 comments on commit 88970d7

Please sign in to comment.