WebCompiler
WebCompiler copied to clipboard
Webcompiler does nothing when istalled as a local dotnet tool
WebCompiler doesn't work once it is installed as a local dotnet tool.
Steps to reproduce:
dotnet new tool-manifestdotnet tool install Excubo.WebCompiler --version 3.1.3-preview.1- Create test SCSS file
dotnet tool run webcompiler test.scss- The commands runs successfully, there are no any error, but CSS file(s) doesn't appear.
Here is the repo with reproduction of the.
Environment
- Apple Silicone (M1 Max)
- macOS 12.1
- dotnet 6.0.101
I understand that it is possible to use it as a global tool, but I'd consider it as a bad practice when you use it in a team project. So, is there any chance to make it work as a local tool?
Also, is there any chance that it will be implemented to use as a nuget package to integrate it into the project build step without the requirement to install dotnet tool? It seems a much more convenient way since it doesn't require to have additional required dotnet tool restore command run for every team member.
It fails on CompileFile() method run:
https://github.com/excubo-ag/WebCompiler/blob/4e5ed58ccffaf28a7a11c9c3b45b4eb15c43e63f/WebCompiler/Compile/SassCompiler.cs#L70-L73
Something wrong with DartSassHost and it is specific to using it as dotnet local tool.
Created the issue in DartSassHost repo - https://github.com/Taritsyn/DartSassHost/issues/4