Sha256: 9a41a9c5d19e5a06b33e44e4a22258710e14936ee9b191f4124e0ecd9cc9d829

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 Bytes

Contents

require "tailwindcss/ruby"

module Tailwindcss
  module Commands
    class << self
      def compile_command(debug: false, **kwargs)
        command = [
          Tailwindcss::Ruby.executable(**kwargs),
          "--input", "-",
          "--config", "./tailwind.config.js"
        ]

        command << "--minify" unless debug

        postcss_path = "postcss.config.js"
        command += ["--postcss", postcss_path] if File.exist?(postcss_path)

        command
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-tailwindcss-0.4.0 lib/tailwindcss/commands.rb