This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk.Web"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp1.1</TargetFramework> | |
<ApplicationInsightsResourceId>/subscriptions/d0f630d1-e1d3-48fd-9a10-866fdc993495/resourcegroups/TEST-Minetilbud/providers/microsoft.insights/components/test-minetilbud-CloudAPI</ApplicationInsightsResourceId> | |
<ApplicationInsightsAnnotationResourceId>/subscriptions/d0f630d1-e1d3-48fd-9a10-866fdc993495/resourceGroups/TEST-Minetilbud/providers/microsoft.insights/components/test-minetilbud-CloudAPI</ApplicationInsightsAnnotationResourceId> | |
<PackageTargetFallback>portable-net45+win8</PackageTargetFallback> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"css/unicorn.css": "css/unicorn-d41d8cd98f.css", | |
"js/unicorn.js": "js/unicorn-273c2c123f.js" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*eslint no-console: ["error", { allow: ["log", "warn", "error"] }] */ | |
'use strict'; | |
const gulp = require('gulp'); | |
const debug = require('gulp-debug'); | |
const del = require('del'); | |
const sass = require('gulp-sass'); | |
const sourcemaps = require('gulp-sourcemaps'); | |
const concat = require('gulp-concat'); | |
const postcss = require('gulp-postcss'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web; | |
using Sitecore.StaticAssets.Infrastructure; | |
namespace Sitecore.StaticAssets.Html.Helpers | |
{ | |
public static class StaticAssets | |
{ | |
private static StaticAssetResolver _assetResolver; | |
public static void Initialize(StaticAssetResolver staticAssetResolver) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
namespace Sitecore.StaticAssets.Infrastructure | |
{ | |
public class AssetCollection : Dictionary<string, string> | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics; | |
using System.IO; | |
using System.Web.Caching; | |
using Newtonsoft.Json;; | |
namespace Sitecore.StaticAssets.Infrastructure | |
{ | |
public class StaticAssetResolver | |
{ | |
private readonly string _assetsJsonPath; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<initialize> | |
<processor type="Sitecore.StaticAssets.Pipelines.InitializeStaticAssetsResolver, Sitecore.StaticAssets"> | |
<!-- CONFIGURATION: Defines the file path for the asset manifest --> | |
<param desc="Asset path">~dist/rev-manifest.json</param> | |
</processor> | |
</initialize> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Pipelines; | |
using Sitecore.StaticAssets.Infrastructure; | |
namespace Sitecore.StaticAssets.Pipelines | |
{ | |
public class InitializeStaticAssetsResolver | |
{ | |
private readonly string _assetPath; | |
public InitializeStaticAssetsResolver(string assetPath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<PropertyGroup> | |
<CopyAllFilesToSingleFolderForPackageDependsOn> | |
CustomCollectFiles; | |
$(CopyAllFilesToSingleFolderForPackageDependsOn); | |
</CopyAllFilesToSingleFolderForPackageDependsOn> | |
<CopyAllFilesToSingleFolderForMsdeployDependsOn> | |
CustomCollectFiles; | |
$(CopyAllFilesToSingleFolderForMsdeployDependsOn); | |
</CopyAllFilesToSingleFolderForMsdeployDependsOn> | |
</PropertyGroup> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using Sitecore.StaticAssets.Html.Helpers | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
@StaticAssets.RenderStyle("/dist/styles/styles.all.css") | |
</head> | |
<body> | |
@RenderBody() |
NewerOlder