WebOptimizer icon indicating copy to clipboard operation
WebOptimizer copied to clipboard

The file extension ".less" is not valid for this asset. Bug in EnforceFileExtensions.

Open logiclabs opened this issue 4 years ago • 2 comments

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

logiclabs avatar May 09 '20 02:05 logiclabs

I just want to bump this issue, is there anything we can do to help? (I proposed a quick PR fix: #127 )

tchadwick avatar May 28 '20 22:05 tchadwick

@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!

tchadwick avatar May 29 '20 03:05 tchadwick