iltotore / mill-tailwind   0.1.0

Website GitHub

Tailwind & DaisyUI plugin for Mill, without Node

Scala versions: 2.13
{Artifact, BinaryVersion, Project, Version, UserState, Env} Mill plugins: 0.11

Mill Tailwind

A Mill plugin to easily use TailwindCSS in Scala projects without NPM & friends.

Usage

You can import Mill Tailwind in your buildscript by using the $ivy import syntax:

import $ivy.`io.github.iltotore::mill-tailwind::<version>`
import io.github.iltotore.tailwind.TailwindModule

You can then use TailwindModule in your build file:

object main extends ScalaModule with TailwindModule {

  //...

  def tailwindModule = "4.1.8"
}

By default, TailwindModule overrides resources to make it depend on the tailwindCSSOutput task. You can disable this behaviour for by changing the definition of resources (just like any other Mill task).

For an exhaustive list of tasks see the documentation.

Contribute

You can build the project using mill compile. If you don't have Mill installed, you can use the wrapper ./millw or ./millw.bat instead (e.g ./millw compile).

To publish the plugin locally, you can use the publishLocal task.