From 286b4a72a757a788f78a87c04f507ae0c18864fb Mon Sep 17 00:00:00 2001 From: ryu <114303361+ryuapp@users.noreply.github.com> Date: Thu, 10 Apr 2025 21:24:27 +0900 Subject: [PATCH] Fix to import statics.js on Windows --- src/cli/commands/init-app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/commands/init-app.ts b/src/cli/commands/init-app.ts index 35a0025..7912af0 100644 --- a/src/cli/commands/init-app.ts +++ b/src/cli/commands/init-app.ts @@ -688,7 +688,7 @@ ${useWebpack ? 'module.exports =' : 'export default'} config; // src/index.js const staticsRelativePath = staticContentRootDir !== './src' ? - path.relative('./src', staticContentRootDir) : + path.relative('./src', staticContentRootDir).replace(/\\/g, '/') : '.'; const indexJsContent = /* language=JavaScript */ `\ ///