mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[*Theme] Ignore failed CSS import urls
This commit is contained in:
parent
11424b18eb
commit
0c8bdfb50d
1 changed files with 7 additions and 1 deletions
|
@ -78,7 +78,13 @@ export default async (manifest, _content, repo) => {
|
||||||
|
|
||||||
console.log(x, url);
|
console.log(x, url);
|
||||||
|
|
||||||
const imported = (await axios.get(url)).data;
|
let imported;
|
||||||
|
try {
|
||||||
|
imported = (await axios.get(url)).data;
|
||||||
|
} catch (e) {
|
||||||
|
console.log('failed to get css for', url);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
variables = variables.concat(imported.match(/--([^*!\n}]*): ([^*\n}]*);/g) || []);
|
variables = variables.concat(imported.match(/--([^*!\n}]*): ([^*\n}]*);/g) || []);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue