-
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Purgecss webpack plugin/only filter fix (#933)
* fix: check if file exists in chunk after only filter * test: update simple-with-exclusion test case of purgecss-webpack-plugin to actually test for purgecss exclusion * docs: only option checks against chunk names instead of entrypoints
- Loading branch information
Showing
5 changed files
with
64 additions
and
79 deletions.
There are no files selected for viewing
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
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
14 changes: 14 additions & 0 deletions
14
packages/purgecss-webpack-plugin/__tests__/cases/simple-with-exclusion/expected/legacy.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/*!******************************************************************************!*\ | ||
!*** css ../../../../../node_modules/css-loader/dist/cjs.js!./src/style.css ***! | ||
\******************************************************************************/ | ||
.legacy-unused-class { | ||
color: red; | ||
} | ||
|
||
.unused-too { | ||
color: blue; | ||
} | ||
|
||
.hello { | ||
color: red; | ||
} |
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
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