mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Fix vendors being processed multiple times
This commit is contained in:
parent
eb194a7258
commit
4dbcfb3ea4
@ -18,7 +18,9 @@ module.exports = hexo => {
|
||||
internal(hexo, dependencies);
|
||||
}
|
||||
for (const [key, value] of Object.entries(dependencies)) {
|
||||
if (vendors[key]) {
|
||||
// This script will be executed repeatedly when Hexo listens file changes
|
||||
// But the variable vendors[key] only needs to be modified once
|
||||
if (vendors[key] && typeof vendors[key] === 'string') {
|
||||
vendors[key] = {
|
||||
url: url_for.call(hexo, vendors[key])
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user