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
1 changed files with 6 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue