Skip to content

Commit

Permalink
fix(distribution): only copy distribution assets for generateDistribu…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
adamdbradley committed Feb 9, 2018
1 parent 944cc03 commit 09c6ea4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/collections/load-collections.ts
Expand Up @@ -83,7 +83,9 @@ async function loadConfigCollection(config: Config, compilerCtx: CompilerCtx, bu
// upgrade the components to be compatible with this version if need be
await upgradeCollection(config, compilerCtx, buildCtx, collectionManifest);

await copySourceCollectionComponentsToDistribution(config, compilerCtx, collectionManifest.moduleFiles);
if (config.generateDistribution) {
await copySourceCollectionComponentsToDistribution(config, compilerCtx, collectionManifest.moduleFiles);
}

// cache it for later yo
compilerCtx.collections[configCollection.name] = collectionManifest;
Expand Down

0 comments on commit 09c6ea4

Please sign in to comment.