From ea3a60007958b61595da374ed7f0675c139c1957 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Wed, 3 Sep 2014 16:16:58 -0700 Subject: [PATCH] Assets added via a plugin are not source files Fixes #2488. Assets added via "no handler" already have their source files added to `sources` via the `sources.push(relPath)` in the sourceItems loop, and assets added via a handler should not appear as source files themselves --- the file that triggered the handler should! This fixes packages like `mizzao:build-fetcher` which add static assets via a plugin. --- tools/compiler.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/compiler.js b/tools/compiler.js index 9a5a14acec..7c9b9a0506 100644 --- a/tools/compiler.js +++ b/tools/compiler.js @@ -422,8 +422,6 @@ var compileUnibuild = function (unipkg, inputSourceArch, packageLoader, servePath: path.join(inputSourceArch.pkg.serveRoot, relPath), hash: hash }); - - sources.push(relPath); }; _.each(sourceItems, function (source) {