Hi Toni,
Very nice code, thank you for publishing this! I ran into an issue while migrating a large codebase, where less imports were not working correctly. It happened when several files were bundled from different locations - many of them importing the same 'common' files. In the end, I resolved the issue by adding this call, just above the line referenced below.
engine.ResetImports();
|
engine.CurrentDirectory = Path.GetDirectoryName(file.PhysicalPath); |
Just wanted to mention that, and once again thank you for the library :)
Steve
Hi Toni,
Very nice code, thank you for publishing this! I ran into an issue while migrating a large codebase, where less imports were not working correctly. It happened when several files were bundled from different locations - many of them importing the same 'common' files. In the end, I resolved the issue by adding this call, just above the line referenced below.
engine.ResetImports();WebOptimizer.Dotless/src/Compiler.cs
Line 38 in 896707f
Just wanted to mention that, and once again thank you for the library :)
Steve