mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
Make sure CSS is rebuilt when postcss.config.js or tailwind.config.js changes
Fixes #7715
This commit is contained in:
@@ -295,3 +295,22 @@ func (c *ResourceCache) DeletePartitions(partitions ...string) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (c *ResourceCache) DeleteContains(parts ...string) {
|
||||
c.Lock()
|
||||
defer c.Unlock()
|
||||
|
||||
for k := range c.cache {
|
||||
clear := false
|
||||
for _, part := range parts {
|
||||
if strings.Contains(k, part) {
|
||||
clear = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if clear {
|
||||
delete(c.cache, k)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user