Exclude file from gulp (#7786)

This commit is contained in:
Chanond Wongpiya
2017-07-28 03:15:59 +07:00
committed by Sébastien Ros
parent be577ee486
commit 5ce43b6827

View File

@@ -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) {