From 0464afd1fafb21b218061f3cb185d747d0bc4125 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 24 Nov 2018 17:45:44 -0600 Subject: [PATCH] Fixed asset compile on Windows Filepaths were receiving the Windows \ path separator which caused assets.json to believe there were escape sequences in the strings to be JSONified. --- assets.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets.go b/assets.go index 72d487e..f39ac4f 100644 --- a/assets.go +++ b/assets.go @@ -234,6 +234,10 @@ func collectAssets(src string, extensions []string) ([]string, error) { assets = append(assets, files...) } + for idx := range assets { + assets[idx] = filepath.ToSlash(assets[idx]) + } + return assets, nil }