mirror of
https://github.com/tailwindlabs/tailwindcss.git
synced 2025-12-08 21:36:08 +00:00
use href to get the full path of the file (#4044)
* use href to get the full path of the file fixes https://github.com/tailwindlabs/tailwindcss/issues/4043 * drop query strings and document fragment from path
This commit is contained in:
parent
b6286c9660
commit
212bec9354
@ -234,7 +234,8 @@ function trackModified(files) {
|
||||
for (let file of files) {
|
||||
if (!file) continue
|
||||
|
||||
let pathname = url.parse(file).pathname
|
||||
let parsed = url.parse(file)
|
||||
let pathname = parsed.href.replace(parsed.hash, '').replace(parsed.search, '')
|
||||
let newModified = fs.statSync(decodeURIComponent(pathname)).mtimeMs
|
||||
|
||||
if (!fileModifiedMap.has(file) || newModified > fileModifiedMap.get(file)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user