New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample PR with tailwind #50
base: main
Are you sure you want to change the base?
Conversation
I'm not a fan of this requirement. it does look nice though! |
There are a few options on how it can be built.
|
If you use the I'd recommend a local tool install, and not a global install ( Should you head down that route, I'd also recommend looking at the <PropertyGroup>
<TailwindCSSReleaseBuildArguments>-i input.css -o wwwroot/css/output.css --minify</TailwindCSSReleaseBuildArguments>
<TailwindCSSDebugBuildArguments>-i input.css -o wwwroot/css/output.css</TailwindCSSDebugBuildArguments>
</PropertyGroup> The only real clunky part of this is the dance required to insure the dotnet tool is actually installed. (dotnet restore does not restore dotnet tools) There's a couple of issues around this dotnet restore behaviour that have some workarounds that you can refer to:
I'll probably open source the |
As you wrote on twitter, that you may want to try tailwind i make this simple setup with same ui.
This bring another requirement to have install tailwindcss.
npm install -D tailwindcss
Then via csproj i add building tailwind with each dotnet build (not sure how it works with hot reload).
Minify non-compress version of final css is about 15kb vs 159kb with bootstrap.
PS: sorry for converting few spaces to tabs i have some VS plugin and project do not have EditorConfig file with spaces