Skip to content

Commit e36e058

Browse files
committed
Make it work in a sub dir
Fixes #27
1 parent fc2d3f5 commit e36e058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/funcs/extract_js_requirements.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ $req := findRE "//= require (\\S*)" .resource.Content }}
2-
{{ $dir := path.Dir .resource.RelPermalink }}
2+
{{ $dir := path.Dir .resource.Name }}
33
{{ $imports := slice }}
44
{{ range $req }}
55
{{ $imp := strings.TrimPrefix "//= require" . }}

0 commit comments

Comments
 (0)