Closed mikaeljorhult closed 5 years ago
Sorry, I should have been more explicit in the description.
The targetRegex
variable is declaring what regexp to check for and then override. Since the regexp has been changed in Mix it no longer matches the if statement and the SVG part not being omitted from the rule. This causes Mix to use its own handling of SVG.
Fixes issue where loader rule isn't replaced for SVGs (causing file-loader to be used instead of html-loader) and plugin only outputting filename instead of actual SVG code.
Fixes #1