From 36133953edd39a0b128a4cec56ec27cc13be9d0e Mon Sep 17 00:00:00 2001 From: arafays Date: Mon, 2 Dec 2024 22:49:11 +0500 Subject: [PATCH] create styles directory before creating input.css --- cmd/program/program.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/program/program.go b/cmd/program/program.go index 45ce4c03..8dcbe299 100644 --- a/cmd/program/program.go +++ b/cmd/program/program.go @@ -438,6 +438,11 @@ func (p *Project) CreateMainFile() error { return err } + err = os.MkdirAll(fmt.Sprintf("%s/%s/styles", projectPath, cmdWebPath), 0o755) + if err != nil { + return fmt.Errorf("failed to create styles directory: %w", err) + } + inputCssFile, err := os.Create(fmt.Sprintf("%s/%s/styles/input.css", projectPath, cmdWebPath)) if err != nil { return err