Skip to content

Commit

Permalink
create styles directory before creating input.css
Browse files Browse the repository at this point in the history
  • Loading branch information
arafays committed Dec 2, 2024
1 parent e71d9e4 commit 3613395
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/program/program.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3613395

Please sign in to comment.