mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
js: Fix potential path issue on Windows
This commit is contained in:
@@ -102,7 +102,7 @@ type Options struct {
|
||||
mediaType media.Type
|
||||
outDir string
|
||||
contents string
|
||||
sourcefile string
|
||||
sourceDir string
|
||||
resolveDir string
|
||||
tsConfig string
|
||||
}
|
||||
@@ -201,7 +201,7 @@ func createBuildPlugins(c *Client, opts Options) ([]api.Plugin, error) {
|
||||
}
|
||||
relDir = filepath.Dir(rel)
|
||||
} else {
|
||||
relDir = filepath.Dir(opts.sourcefile)
|
||||
relDir = opts.sourceDir
|
||||
}
|
||||
|
||||
// Imports not starting with a "." is assumed to live relative to /assets.
|
||||
|
Reference in New Issue
Block a user