diff --git a/src/ClientApp/aspnetcore-https.js b/src/ClientApp/aspnetcore-https.js index 2bde928..629ece4 100644 --- a/src/ClientApp/aspnetcore-https.js +++ b/src/ClientApp/aspnetcore-https.js @@ -8,6 +8,8 @@ const baseFolder = ? `${process.env.APPDATA}/ASP.NET/https` : `${process.env.HOME}/.aspnet/https`; +fs.mkdirSync(baseFolder, { recursive: true }); + const certificateArg = process.argv.map(arg => arg.match(/--name=(?.+)/i)).filter(Boolean)[0]; const certificateName = certificateArg ? certificateArg.groups.value : process.env.npm_package_name;