Skip to content

Commit 47dbc64

Browse files
committed
fix: handle export config path correctly on Window
1 parent 67629ee commit 47dbc64

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

cli/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ program
1515
port: args.port,
1616
tailwindConfigProvider: async () => {
1717
const configPath = resolveConfigPath(program.config)
18-
const configHref = pathToFileURL(configPath).href;
18+
const configHref = pathToFileURL(configPath).href
1919
delete require.cache[configHref]
2020
const config = await import(configHref)
2121
return config.default || config
@@ -28,7 +28,9 @@ program
2828
.command('export [outputDir]')
2929
.description('Create a static export of the viewer')
3030
.action((outputDir = './tcv-build') => {
31-
require('./export')(outputDir, resolveConfigPath(program.config))
31+
const configPath = resolveConfigPath(program.config)
32+
const configHref = pathToFileURL(configPath).href
33+
require('./export')(outputDir, configHref)
3234
})
3335

3436
program.parse(process.argv)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)