Skip to content

Commit 7154bf6

Browse files
committed
Fix manifest CSS paths in Windows
1 parent c412692 commit 7154bf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from 'fs'
22
import { AddressInfo } from 'net'
33
import path from 'path'
44
import colors from 'picocolors'
5-
import { Plugin, loadEnv, UserConfig, ConfigEnv, Manifest, ResolvedConfig, SSROptions } from 'vite'
5+
import { Plugin, loadEnv, UserConfig, ConfigEnv, Manifest, ResolvedConfig, SSROptions, normalizePath } from 'vite'
66

77
interface PluginConfig {
88
/**
@@ -163,7 +163,7 @@ export default function laravel(config: string|string[]|PluginConfig): LaravelPl
163163
return null
164164
}
165165

166-
const relativeChunkPath = path.relative(resolvedConfig.root, chunk.facadeModuleId)
166+
const relativeChunkPath = normalizePath(path.relative(resolvedConfig.root, chunk.facadeModuleId))
167167

168168
cssManifest[relativeChunkPath] = {
169169
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */

0 commit comments

Comments
 (0)