Skip to content

Does not support scss #228

Closed
Closed
@KinWang-2013

Description

@KinWang-2013

I tried creating a file application.tailwind.scss but it does not work on rake assets:precompile. tried changing the code in gem from

def compile_command(debug: false, **kwargs)
  [
    executable(**kwargs),
    "-i", Rails.root.join("app/assets/stylesheets/application.tailwind.css").to_s,
    "-o", Rails.root.join("app/assets/builds/tailwind.css").to_s,
    "-c", Rails.root.join("config/tailwind.config.js").to_s,
  ].tap do |command|
    command << "--minify" unless debug
  end
end

to:

def compile_command(debug: false, **kwargs)
  [
    executable(**kwargs),
    "-i", Rails.root.join("app/assets/stylesheets/application.tailwind.scss").to_s,
    "-o", Rails.root.join("app/assets/builds/tailwind.css").to_s,
    "-c", Rails.root.join("config/tailwind.config.js").to_s,
  ].tap do |command|
    command << "--minify" unless debug
  end
end

and it compiled, notice the path application.tailwind.scss, and application.tailwind.css can we add a support for scss too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions