Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

whitelistPatterns troubles on cascading #88

@laureProthais

Description

@laureProthais

Hello,

I have some troubles with whitelistPatterns option.

I want to whitelist all selectors containing a specific word slick so here is my configuration :

new PurgeCssPlugin({
      paths: glob.sync([
        path.join(__dirname, "assets/js/**/*.js"),
        path.join(__dirname, "templates/**/*.html.twig")
      ]),
      whitelistPatterns: [/slick/, /icon-/]
})

It works well but I have some selectors exceptions like that one:
.theme-slider.slick-arrow.icon-arrow-left or [class^="icon-"].slick-arrow.theme-slider or [class*=" icon-"].slick-arrow.theme-slider

By adding theme-slider is solved my problem but I want to understand the trouble to avoid to adding a maximum of selectors.

I'm working with [email protected] and symfony/[email protected].

Tks !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions