Updated ClientDependency config in 'StandardConfig' folder
[TFS Changeset #69077]
This commit is contained in:
@@ -1,25 +1,87 @@
|
||||
<clientDependency version="13">
|
||||
<fileRegistration defaultProvider="PageHeaderProvider" fileDependencyExtensions="js,css">
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
For full details of the client dependency framework, visit
|
||||
the CodePlex site @ http://clientdependency.codeplex.com
|
||||
It manages CSS and JS file dependencies per control without having to worry about duplicates.
|
||||
It also manages the combination, compression and minification of all JS & CSS files.
|
||||
|
||||
NOTES:
|
||||
* Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config
|
||||
* A new version will invalidate both client and server cache and create new persisted files
|
||||
-->
|
||||
<clientDependency version="28">
|
||||
|
||||
<fileRegistration defaultProvider="PageHeaderProvider" fileDependencyExtensions=".js,.css">
|
||||
<providers>
|
||||
<add name="PageHeaderProvider"
|
||||
type="ClientDependency.Core.FileRegistration.Providers.PageHeaderProvider, ClientDependency.Core"
|
||||
isDebug="true"/>
|
||||
<add name="LazyLoadProvider"
|
||||
type="ClientDependency.Core.FileRegistration.Providers.LazyLoadProvider, ClientDependency.Core"
|
||||
isDebug="true"/>
|
||||
<add name="CanvasProvider"
|
||||
type="umbraco.presentation.LiveEditing.CanvasClientDependencyProvider, umbraco"
|
||||
isDebug="true"/>
|
||||
<add name="PageHeaderProvider" type="ClientDependency.Core.FileRegistration.Providers.PageHeaderProvider, ClientDependency.Core"/>
|
||||
<add name="LazyLoadProvider" type="ClientDependency.Core.FileRegistration.Providers.LazyLoadProvider, ClientDependency.Core"/>
|
||||
<add name="LoaderControlProvider" type="ClientDependency.Core.FileRegistration.Providers.LoaderControlProvider, ClientDependency.Core"/>
|
||||
<!-- Used for loading dependencies in Canvas mode -->
|
||||
<add name="CanvasProvider" type="umbraco.presentation.LiveEditing.CanvasClientDependencyProvider, umbraco" />
|
||||
</providers>
|
||||
</fileRegistration>
|
||||
|
||||
<!--
|
||||
The composite file section configures the compression/combination/minification of files.
|
||||
You can enable/disable minification of either JS/CSS files and you can enable/disable the
|
||||
persistence of composite files. By default, minification and persistence is enabled. Persisting files
|
||||
means that the system is going to save the output of the compressed/combined/minified files
|
||||
to disk so that on any subsequent request (when output cache expires) that these files don't have
|
||||
to be recreated again and will be based on the persisted file on disk. This saves on processing time.
|
||||
-->
|
||||
<compositeFiles defaultProvider="CompositeFileProcessor" compositeFileHandlerPath="DependencyHandler.axd">
|
||||
<providers>
|
||||
<add name="CompositeFileProcessor"
|
||||
<add name="CompositeFileProcessor"
|
||||
type="ClientDependency.Core.CompositeFiles.Providers.CompositeFileProcessingProvider, ClientDependency.Core"
|
||||
enableCssMinify="true"
|
||||
enableJsMinify="true"
|
||||
persistFiles="true"
|
||||
compositeFilePath="~/App_Data/ClientDependency" />
|
||||
</providers>
|
||||
|
||||
<!--
|
||||
Defines the mime types to compress when requested by the client.
|
||||
Path is a regex selector, or a * can be used as in place of 'any'.
|
||||
Generally mime types are only set by client browsers in the request for things
|
||||
such as JSON or XML ajax requests.
|
||||
-->
|
||||
<mimeTypeCompression>
|
||||
<!-- Compress all json requests for the tree -->
|
||||
<add type="application/json" path="^.*?/webservices/Tree.*" />
|
||||
</mimeTypeCompression>
|
||||
|
||||
<!--
|
||||
Defines the paths to match on to enable rogue file compression.
|
||||
Path is a regex selector, or a * can be used as in place of 'any'.
|
||||
jsExt and cssExt are comma seperated list of extensions to match to have the dependencies
|
||||
replaced with the composite file handler. You can even include ASP.Net web service JS proxies.
|
||||
Both jsExt and cssExt are optional (by default they are .js and .css)
|
||||
-->
|
||||
<rogueFileCompression>
|
||||
<!-- Compress any rogue files found in the html markup in the back office -->
|
||||
<add path="^.*?/umbraco/.*" compressJs="true" compressCss="true" jsExt=".js,asmx/js" cssExt=".css">
|
||||
<exclusions>
|
||||
<!-- Ensure that the TinyMCE compression page doesn't get scraped -->
|
||||
<add path="^.*tinymce3tinymceCompress.aspx.*" />
|
||||
<!-- Ensure that the language.aspx page doesn't get scraped -->
|
||||
<add path="^.*language.aspx.*" />
|
||||
<!-- Ensure that the casingrules.aspx page doesn't get scraped -->
|
||||
<add path="^.*UmbracoCasingRules.aspx.*" />
|
||||
</exclusions>
|
||||
</add>
|
||||
</rogueFileCompression>
|
||||
|
||||
</compositeFiles>
|
||||
|
||||
<!-- ClientDependency also supports the ASP.Net MVC framework, see codeplex URL for full details -->
|
||||
<!--
|
||||
<mvc defaultRenderer="StandardRenderer">
|
||||
<renderers>
|
||||
<add name="StandardRenderer" type="ClientDependency.Core.Mvc.Providers.StandardRenderer, ClientDependency.Core"/>
|
||||
<add name="LazyLoadRenderer" type="ClientDependency.Core.Mvc.Providers.LazyLoadRenderer, ClientDependency.Core"/>
|
||||
</renderers>
|
||||
</mvc>
|
||||
-->
|
||||
|
||||
</clientDependency>
|
||||
|
||||
Reference in New Issue
Block a user