Пример #1
0
 // This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddOptions();
     services.AddAssetManagement(o => {
         o.Assets = new List<string> { "stuff/sass", "stuff/js" };
         o.Fingerprint = true;
         o.ServePath = "/asset";
         o.WatchFiles = true;
         o.Minify = false;
         o.CacheLength = new System.TimeSpan(1, 0, 0, 0);
     });
     services.AddMvc();
 }