mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-25 02:44:56 +08:00
Exclude file from gulp (#7786)
This commit is contained in:
committed by
Sébastien Ros
parent
be577ee486
commit
5ce43b6827
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user