Parcourir la source

fix: some resources not being included in build if assetSource = local

Sv443 il y a 5 mois
Parent
commit
a21f521ef3
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      src/tools/post-build.ts

+ 1 - 3
src/tools/post-build.ts

@@ -279,9 +279,7 @@ async function getResourceDirectives(ref: string) {
 
     const addResourceHashed = async (name: string, path: string, ref: string) => {
       try {
-        if(assetSource === "local")
-          return;
-        if(path.match(/^https?:\/\//)) {
+        if(assetSource === "local" || path.match(/^https?:\/\//)) {
           resourcesHashed[name] = { path: getResourceUrl(path, ref), ref, hash: undefined };
           return;
         }