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

Version Path
jekyll-tailwindcss-0.1.0-x86_64-linux lib/jekyll/converters/tailwindcss.rb
jekyll-tailwindcss-0.1.0-x86_64-darwin lib/jekyll/converters/tailwindcss.rb
jekyll-tailwindcss-0.1.0-x64-mingw32 lib/jekyll/converters/tailwindcss.rb
jekyll-tailwindcss-0.1.0-x64-mingw-ucrt lib/jekyll/converters/tailwindcss.rb
jekyll-tailwindcss-0.1.0-arm64-darwin lib/jekyll/converters/tailwindcss.rb
jekyll-tailwindcss-0.1.0-arm-linux lib/jekyll/converters/tailwindcss.rb
jekyll-tailwindcss-0.1.0-aarch64-linux lib/jekyll/converters/tailwindcss.rb
jekyll-tailwindcss-0.1.0 lib/jekyll/converters/tailwindcss.rb