jaspr icon indicating copy to clipboard operation
jaspr copied to clipboard

add minify option to tailwind

Open siesdart opened this issue 1 year ago โ€ข 1 comments

Description

Currently in jaspr_tailwind CSS is compiled without any compression. I feel this part is not very desirable for production. Therefore, I tried adding the --minify option to the CLI so that tailwind undergoes a minification process when compiling CSS. Also, in this pull request, the --minify option was simply added, but I think it would be good to add it only when jaspr build, so I am suggesting this.

Type of Change

  • โœจ New feature or improvement

Ready Checklist

  • [x] I've read the Contribution Guide.
  • [x] In case this PR changes one of the core packages, I've modified the respective CHANGELOG.md file using the semantic_changelog format.
  • [x] I updated/added relevant documentation (doc comments with ///).
  • [x] I added myself to the AUTHORS file (optional, if you want to).

siesdart avatar Jun 25 '24 15:06 siesdart

Package Version Report

The following packages have been updated: jaspr_tailwind : 0.2.0 -> 0.2.1

github-actions[bot] avatar Jun 25 '24 16:06 github-actions[bot]

As you said, there should be a check to only add this in release mode.

schultek avatar Jul 12 '24 21:07 schultek

I fixed it to only apply in release mode as you said, thank you.

siesdart avatar Jul 13 '24 04:07 siesdart