Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow path exclusion based on wildcards #37

Closed
michaellwest opened this issue May 4, 2018 · 2 comments
Closed

Allow path exclusion based on wildcards #37

michaellwest opened this issue May 4, 2018 · 2 comments

Comments

@michaellwest
Copy link

michaellwest commented May 4, 2018

In my example, SXA generates optimized-min items. Would like to exclude those by name like the following:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
  <sitecore>
    <pipelines>
      <dianogaOptimize>
        <processor type="Dianoga.Processors.Pipelines.DianogaOptimize.PathExclusion, Dianoga">
          <paths hint="list:AddExclusion">
            <path>*/scripts/optimized-min</path>
            <path>*/styles/optimized-min</path>
          </paths>
        </processor>
      </dianogaOptimize>
    </pipelines>
  </sitecore>
</configuration>
@markgibbons25
Copy link
Collaborator

This is not a bad idea as I can think of some other use cases, for this example I've just been adding /Themes and /Base-Themes to the path exclusion, but for the case where there are also images in those paths then this will be better.

@markgibbons25
Copy link
Collaborator

Done, please see 5.0.0 RC1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants