Skip to content

Commit

Permalink
fix: Prevent MangleCssClassPlugin from altering 'false' in JavaScript (
Browse files Browse the repository at this point in the history
…#35)

Resolved an issue where MangleCssClassPlugin mistakenly replaced 'fa' and 'fab' in JavaScript, causing 'false' to become 'alse'.
  • Loading branch information
warnyul authored Nov 27, 2024
1 parent e73df78 commit e6a877b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ module.exports = {
}
}),
new MangleCssClassPlugin({
classNameRegExp: '((fa|clazz)-([a-zA-Z0-9-]+)|fa(b?))',
classNameRegExp: '(fa|clazz)-([a-zA-Z0-9-]+)',
reserveClassName: ['fa', 'fab'],
mangleCssVariables: true,
log: true,
Expand Down

0 comments on commit e6a877b

Please sign in to comment.