mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixed a potential exception in Gulpfile when asset group output doesn't exist.
This commit is contained in:
@@ -105,7 +105,7 @@ function createAssetGroupTask(assetGroup, doRebuild) {
|
||||
if (doConcat && !doRebuild) {
|
||||
// Force a rebuild of this asset group is the asset manifest file itself is newer than the output.
|
||||
var assetManifestStats = fs.statSync(assetGroup.manifestPath);
|
||||
var outputStats = fs.statSync(assetGroup.outputPath);
|
||||
var outputStats = fs.existsSync(assetGroup.outputPath) ? fs.statSync(assetGroup.outputPath) : null;
|
||||
doRebuild = !outputStats || assetManifestStats.mtime > outputStats.mtime;
|
||||
}
|
||||
switch (outputExt) {
|
||||
|
Reference in New Issue
Block a user