Browse Source

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

Sv443 5 months ago
parent
commit
a21f521ef3
1 changed files with 1 additions and 3 deletions
  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) => {
     const addResourceHashed = async (name: string, path: string, ref: string) => {
       try {
       try {
-        if(assetSource === "local")
-          return;
-        if(path.match(/^https?:\/\//)) {
+        if(assetSource === "local" || path.match(/^https?:\/\//)) {
           resourcesHashed[name] = { path: getResourceUrl(path, ref), ref, hash: undefined };
           resourcesHashed[name] = { path: getResourceUrl(path, ref), ref, hash: undefined };
           return;
           return;
         }
         }