Skip to content

Improved matching logic

Compare
Choose a tag to compare
@swimmadude66 swimmadude66 released this 12 Feb 22:40
· 15 commits to master since this release

1.0.1 - Improved matching logic

  • Fixed an issue with global regexes not matching multiple files (closes #5)
  • Added support for a callback function to test an asset for skipping (closes #6)

To use the new function matcher, add a function to either array in the options which takes an HtmlTagObject from html-webpack-plugin as an argument, and returns true to skip the file, or false to include it.

New mocha tests have also been added to test for both of the above fixes. The mocha test file has also been refactored to reduce duplicate testing effort and easily expand coverage.