Closed kaifaty closed 1 year ago
Thanks for the bug report! Should be fixed in version 0.2.1.
@kaifaty be sure to either include the LICENSE.md in your project or use literals-minifier
as a dependency
Ok, it was temp solution. ps.
return css.replace(/(\n)|(\r)/g, "");
You don't replace spaces
@kaifaty I'm not replacing spaces since that might break some css things like the content: "some text"
attribute, code with template strings as properties should however now just use clean-css to minify, the replacement is just a fallback now in case other warnings appear.
Regexp has 2 repeated spaces. So content: "some text"
will safe, but yeah, in some cases will be errors.
I've receive an error
splitHTMLByPlaceholder() must return same number of strings as template parts
when i try to minify component with styles like so:The problem is in CleanCSS, it return warnings with wrong styles. I've solved it. On warnings now just removing spaces and \r\n: