Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only apply user plugins to loader (#111)
* only apply user plugins to loader The input `css` has already been processed by any plugins before `postcss-module`, and the output will be processed by any plugins after. We shoud not run all the user plugins again. However, for anything that is loaded in by the loader (such as from `composes`), we should run the plugins that were listed before `postcss-modules`, so that the css that is brought in can catch up. Fixes #70 * update tests * also test plugin isn't called multiple times * include filename in comment * add start and end markers * use findIndex * separate tests for only calling plugins once * fix missing check
- Loading branch information
1 parent
2472d47
commit d1c997f
Showing
3 changed files
with
206 additions
and
6 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
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