mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
Import default config from separate path (require('tailwindcss/defaultConfig')) to allow importing the default config without importing all of Tailwind, which causes errors with Webpack due to a dynamic require.
8 lines
222 B
JavaScript
8 lines
222 B
JavaScript
import tailwind from '../src/index'
|
|
import config from '../defaultConfig.js'
|
|
|
|
test('it can accept a config file', () => {
|
|
tailwind('./defaultConfig.js')
|
|
expect(require('../defaultConfig.stub.js')).toEqual(config())
|
|
})
|