diff options
Diffstat (limited to 'resource')
-rw-r--r-- | resource/tocss/scss/tocss.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/resource/tocss/scss/tocss.go b/resource/tocss/scss/tocss.go index c50b054b7..5ba7793c0 100644 --- a/resource/tocss/scss/tocss.go +++ b/resource/tocss/scss/tocss.go @@ -93,6 +93,8 @@ func (t *toCSSTransformation) Transform(ctx *resource.ResourceTransformationCtx) namePatterns = []string{"_%s.scss", "%s.scss", "_%s.sass", "%s.sass"} } + name = strings.TrimPrefix(name, "_") + for _, namePattern := range namePatterns { filenameToCheck := filepath.Join(basePath, fmt.Sprintf(namePattern, name)) fi, err := t.c.sfs.Fs.Stat(filenameToCheck) |