Merge pull request #15831 from abpframework/liangshiwei/cli

Fix bundle service path issue
pull/15832/head
maliming 3 years ago committed by GitHub
commit 082519264b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -109,12 +109,19 @@ public abstract class BundlerBase : IBundler, ITransientDependency
content = GetFileContent(filePath, options.Minify);
}
content = ProcessBeforeAddingToTheBundle(definition.Source, Path.Combine(options.Directory, "wwwroot"),
content = ProcessBeforeAddingToTheBundle(definition.Source, Path.Combine(Directory.GetCurrentDirectory(), "wwwroot"),
content);
if (content.Contains("coding"))
{
}
builder.AppendLine(content);
}
return builder.ToString();
}
}
@ -133,7 +140,7 @@ public abstract class BundlerBase : IBundler, ITransientDependency
}
var content = GetFileContent(fileFullPath, options.Minify);
content = ProcessBeforeAddingToTheBundle(definition.Source, Path.Combine(options.Directory, "wwwroot"),
content = ProcessBeforeAddingToTheBundle(definition.Source, Path.Combine(Directory.GetCurrentDirectory(), "wwwroot"),
content);
builder.AppendLine(content);

Loading…
Cancel
Save