From b895e9b8156c812087fad7ed878310130df55c60 Mon Sep 17 00:00:00 2001 From: Naitik Shah Date: Sun, 25 Apr 2021 22:19:40 +0400 Subject: [PATCH] support for [dir] in AssetNames --- internal/bundler/bundler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/bundler/bundler.go b/internal/bundler/bundler.go index 0cc27a200fb..884ed8c9cc8 100644 --- a/internal/bundler/bundler.go +++ b/internal/bundler/bundler.go @@ -270,7 +270,7 @@ func parseFile(args parseArgs) { h.Write([]byte(source.Contents)) hash = hashForFileName(h.Sum(nil)) } - dir := "/" + dir := strings.TrimPrefix(absResolveDir, args.options.AbsOutputBase) relPath := config.TemplateToString(config.SubstituteTemplate(args.options.AssetPathTemplate, config.PathPlaceholders{ Dir: &dir, Name: &base,