We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbbf560 commit 2f761fdCopy full SHA for 2f761fd
cli/index.js
@@ -1,4 +1,5 @@
1
#!/usr/bin/env node
2
+const { pathToFileURL } = require('url')
3
const { resolveConfigPath } = require('../lib/tailwindConfigUtils')
4
const program = require('commander')
5
program
@@ -14,8 +15,9 @@ program
14
15
port: args.port,
16
tailwindConfigProvider: async () => {
17
const configPath = resolveConfigPath(program.config)
- delete require.cache[configPath]
18
- const config = await import(configPath)
+ const configHref = pathToFileURL(configPath).href;
19
+ delete require.cache[configHref]
20
+ const config = await import(configHref)
21
return config.default || config
22
},
23
shouldOpen: args.open
0 commit comments