Esempio n. 1
0
 protected override string GetFileContent(IBundlerContext context, string file)
 {
     return(CssRelativePath.Adjust(
                base.GetFileContent(context, file),
                WebRootFileProvider.GetAbsolutePath(file),
                WebRootFileProvider.GetAbsolutePath(context.BundleRelativePath)
                ));
 }
Esempio n. 2
0
        protected virtual IFileInfo GetFileInfo(IBundlerContext context, string file)
        {
            var fileInfo = WebRootFileProvider.GetFileInfo(file);

            if (!fileInfo.Exists)
            {
                throw new AbpException($"Could not find file '{file}' using {nameof(IHybridWebRootFileProvider)}");
            }

            return(fileInfo);
        }