tailwind_build: Build Tailwind CSS

Description Usage Arguments See Also

View source: R/tailwind-build.R

Description

Builds the Tailwind CSS file based on the configuration in dir. It's recommended that you use JIT mode when running tailwind_install() to make this process faster.

Usage

1
2
3
4
5
6
tailwind_build(
  input = pkg_inst("tailwind", "tailwind.css"),
  config = pkg_inst("tailwind", "tailwind.config.js"),
  output = pkg_inst("tailwind", "dist", "tailwind.css"),
  prod = FALSE
)

Arguments

input

(pth) path to the input css file with tailwind directives

config

(pth) path to the config js file that dictates rendering

output

(pth) path to the output css file that can be linked

prod

(flg) to render production build vs development

See Also

Other Tailwind CSS: tailwind_assets(), tailwind_demo(), tailwind_init(), tailwind_install(), tailwind_run()


tjpalanca/tailwind.R documentation built on Dec. 23, 2021, 10:59 a.m.