johan-v-r / LibSassBuilder

Sass builder for .NET projects
MIT License
99 stars 14 forks source link

Run manually via dotnet / console #5

Closed braidenstiller closed 3 years ago

braidenstiller commented 3 years ago

Is it possible to run the nuget package manually in the console outside of dotnet build? For example rebuilding the sass files while debugging?

johan-v-r commented 3 years ago

No not yet. I was thinking about making this into a global tool at some point which could do that.

In the meantime, see if dotnet watch could work for you? That's how I use it most of the time.

I add this to my csproj

<ItemGroup>
    <!-- extends watching group - https://docs.microsoft.com/en-us/aspnet/core/tutorials/dotnet-watch?view=aspnetcore-5.0#customize-files-list-to-watch -->
    <Watch Include="**\*.scss" Exclude="**\*.css" />
</ItemGroup>

Then run it with dotnet watch run

johan-v-r commented 3 years ago

I've published a global tool now as well. See readme and please let me know if this works for you?

braidenstiller commented 3 years ago

Perfect. Thanks for the quick turnaround johan 👍