mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Make resolveConfig available in user land
Adds a new `resolveConfig` file to the project root that can be imported as `tailwindcss/resolveConfig` and used to get a fully merged version of your custom config file. Useful when you want access to your design tokens in JS.
This commit is contained in:
parent
d0e44dc361
commit
b8a997d68b
6
resolveConfig.js
Normal file
6
resolveConfig.js
Normal file
@ -0,0 +1,6 @@
|
||||
const resolveConfigObjects = require('./lib/util/resolveConfig').default
|
||||
const defaultConfig = require('./stubs/defaultConfig.stub.js')
|
||||
|
||||
module.exports = function resolveConfig(config) {
|
||||
return resolveConfigObjects([config, defaultConfig])
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user