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 636f0c4 commit 6811fc0Copy full SHA for 6811fc0
src/bin/readPublicDirPath.ts
@@ -31,7 +31,13 @@ export async function readPublicDirPath(params: { projectDirPath: string }): Pro
31
32
const viteConfig = fs.readFileSync(viteConfigFilePath).toString("utf8");
33
34
- if (!viteConfig.includes("publicDir")) {
+ if (
35
+ !viteConfig
36
+ .split(/\r?\n/)
37
+ .filter(line => !line.startsWith("//"))
38
+ .join("\n")
39
+ .includes("publicDir")
40
+ ) {
41
break read_from_vite_config;
42
}
43
0 commit comments