mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
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.
7 lines
244 B
JavaScript
7 lines
244 B
JavaScript
const resolveConfigObjects = require('./lib/util/resolveConfig').default
|
|
const defaultConfig = require('./stubs/defaultConfig.stub.js')
|
|
|
|
module.exports = function resolveConfig(config) {
|
|
return resolveConfigObjects([config, defaultConfig])
|
|
}
|