Skip to content

Commit b9b25f5

Browse files
author
Étienne Lévesque
committed
docs: Add docs to explain the new option
1 parent d20c27e commit b9b25f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ def view() do
7575
end
7676
```
7777

78+
### JSON library selection
79+
80+
ExCSSModules needs to parse JSON files in order to read the mappings between the base classe names and the autogenerated
81+
ones. You can specify which JSON parsing library you wish to use through the `:json_library` config option. If your
82+
project uses Phoenix, it is recommended to use the same library for both Phoenix and ExCSSModules. ExCSSModules uses
83+
[Poison](https://hex.pm/packages/poison) by default.
84+
7885
### ExCell
7986
ExCSSModules works perfectly with [ExCell](https://github.com/DefactoSoftware/ex_cell). By adding the following to your `web.ex` definition for cells you can automatically add the stylesheet in the same directory as your ExCell Cell:
8087
```ex

0 commit comments

Comments
 (0)