WebOptimizer
WebOptimizer copied to clipboard
The file extension ".less" is not valid for this asset. Bug in EnforceFileExtensions.
The dotless plugin does not appear to currently work at all for .less files. There is a bug in the WebOptimizer.Core library which is causing it to not be able to register it's accepted extensions.
For this method:
public static IEnumerable<IAsset> EnforceFileExtensions(this IEnumerable<IAsset> assets, params string[] extensions)
{
return assets.AddProcessor(asset => asset.EnforceFileExtensions());
}
The issue is extensions
is missing as a parameter from this line:
https://github.com/ligershark/WebOptimizer/blob/f3b4e32e0de82ce2d3bcf39841232fb511fc7fc1/src/WebOptimizer.Core/Processors/EnforceFileExtensions.cs#L59
I just want to bump this issue, is there anything we can do to help? (I proposed a quick PR fix: #127 )
@logiclabs Mads just merged the code fix for fixing this issue. I hope this means that this will be out with the next release. (I'm not sure what the release cadence for this project is) I just wanted to thank you for pointing out exactly where and what the problem was. It made fixing it a 2 second fix. Shout out to you!