Skip to content

Commit

Permalink
Exclude file from gulp (OrchardCMS#7786)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanondw authored and sebastienros committed Jul 27, 2017
1 parent be577ee commit 5ce43b6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ function resolveAssetGroupPaths(assetGroup, assetManifestPath) {
assetGroup.manifestPath = assetManifestPath;
assetGroup.basePath = path.dirname(assetManifestPath);
assetGroup.inputPaths = assetGroup.inputs.map(function (inputPath) {
return path.resolve(path.join(assetGroup.basePath, inputPath));
var excludeFile = false;
if (inputPath.startsWith('!')) {
inputPath = inputPath.slice(1);
excludeFile = true;
}
var newPath = path.resolve(path.join(assetGroup.basePath, inputPath));
return (excludeFile ? '!' : '') + newPath;
});
assetGroup.watchPaths = [];
if (assetGroup.watch) {
Expand Down

0 comments on commit 5ce43b6

Please sign in to comment.