Sha256: 13151bb313f6901a3455c17bed2a0d5e540c8b2643349bac1fea53ffc9a1e4f6
Contents?: true
Size: 550 Bytes
Versions: 8
Compression:
Stored size: 550 Bytes
Contents
module Jekyll module Converters class Tailwindcss < Converter safe true priority :low def matches(ext) /^\.tailwindcss$/i.match?(ext) end def output_ext(ext) ".css" end def convert(content) dev_mode = Jekyll.env == "development" Jekyll.logger.info "Jekyll Tailwind:", "Generating #{dev_mode ? "" : "minified "}CSS" compile_command = ::Tailwindcss::Commands.compile_command(debug: dev_mode).join(" ") `#{compile_command}` end end end end
Version data entries
8 entries across 8 versions & 1 rubygems