[FIX] fixed typo : tailwind-css -> tailwindcss

This commit is contained in:
vianney committed 2022-07-20 19:26:26 +02:00
1 parent 014df14a24
commit 7aa8feaa49
4 files changed
+13 -13

No files matched your search

+3 -3
View File
@@ -37,15 +37,15 @@ You can combine different tools with `dioxus`.
```
Use the `wasm_opt = true` key/pair value to activate optimization with wasm-opt.
When building on `release` profile, Dioxus will run `wasm_opt` with `-Oz` option.
2. ***tailwind-css*** - Use the `tailwind-css` standalone binary to generate a Tailwind CSS bundle file.
2. ***tailwindcss*** - Use the `tailwindcss` standalone binary to generate a Tailwind CSS bundle file.
```
tailwind-css = { input = "main.css", config = "tailwind.config.js" }
tailwindcss = { input = "main.css", config = "tailwind.config.js" }
```
You can set two optional keys :
- input: path of the input CSS file (default value is "public/tailwind.css")
- config: path to the config file for Tailwind (default value is "src/tailwind.config.js")
When building on `release` profile, Dioxus will run `tailwind-css` with the `--minify` option.
When building on `release` profile, Dioxus will run `tailwindcss` with the `--minify` option.
Note : Dioxus will automatically include the generated tailwind file in the `index.html`