Clean Source Paths Only
This commit is contained in:
@@ -233,7 +233,11 @@ func (p *Project) SourceDir() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *Project) AssetsDir() string {
|
func (p *Project) AssetsDir() string {
|
||||||
return filepath.Join(p.Root, p.Config.Paths.Assets)
|
assets := strings.TrimSpace(p.Config.Paths.Assets)
|
||||||
|
if assets == "" {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
return filepath.Join(p.Root, assets)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Project) BuildDir() string {
|
func (p *Project) BuildDir() string {
|
||||||
|
|||||||
Reference in New Issue
Block a user