Skip to content

Commit 606d5b6

Browse files
committed
document resolveConfig
1 parent d807ffe commit 606d5b6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

source/docs/configuration.blade.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,3 +406,15 @@ Here's a list of every core plugin for reference:
406406
| `width` | The `width` utilities like `w-1/2` |
407407
| `wordBreak` | The `word-break` utilities like `break-all` |
408408
| `zIndex` | The `z-index` utilities like `z-50` |
409+
410+
## Using your configuration file in javascript
411+
412+
You can import the Tailwind config file in your javascript code too! Tailwind provides `resolveConfig` helper to get a fully merged version of your custom config file.
413+
414+
```js
415+
// src/tailwindConfig.js
416+
import resolveConfig from 'tailwindcss/resolveConfig'
417+
import config from '../../tailwind.config.js'
418+
419+
export default resolveConfig(tailwindConfig)
420+
```

0 commit comments

Comments
 (0)