mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
handle duplicate config names in makestatic
This commit is contained in:
parent
a1460f5cca
commit
41be5bb8be
2
node_modules/architect-build/compress.js
generated
vendored
2
node_modules/architect-build/compress.js
generated
vendored
@ -108,7 +108,7 @@ compress.withCache = function(sources, opts) {
|
||||
cache.compress = Object.create(null);
|
||||
var code = sources.map(function(pkg) {
|
||||
if (pkg.id && cache.compress[pkg.id]) {
|
||||
console.log("Compress Cache Hit" + pkg.id);
|
||||
console.log("Compress Cache Hit " + pkg.id);
|
||||
return cache.compress[pkg.id];
|
||||
}
|
||||
if (opts.exclude && opts.exclude.test(pkg.id))
|
||||
|
||||
@ -24,7 +24,11 @@ define(function(require, exports, module) {
|
||||
if (options.skin && options.config) {
|
||||
build.buildSkin(options.config, options.skin, pathConfig, save(["skin", options.config, options.skin + ".css"]));
|
||||
} else if (options.config) {
|
||||
var configs = options.config.split(/,\s*/);
|
||||
var seen = Object.create(null);
|
||||
var configs = options.config.split(/,\s*/).filter(function(x) {
|
||||
if (seen[x]) return false;
|
||||
return seen[x] = true;
|
||||
});
|
||||
var configCache = options.skipDuplicates && { duplicates: []};
|
||||
var usedPlugins = options.copyStaticResources && Object.create(null);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user