Class: Decidim::Assets::Tailwind::Instance

Inherits:
Object
  • Object
show all
Defined in:
decidim-core/lib/decidim/assets/tailwind/instance.rb

Instance Method Summary collapse

Instance Method Details

#write_runtime_configurationObject



10
11
12
13
14
# File 'decidim-core/lib/decidim/assets/tailwind/instance.rb', line 10

def write_runtime_configuration
  evaluated_template = ERB.new(tailwind_configuration_template).result(tailwind_variables.instance_eval { binding })

  File.write(File.join(app_path, "tailwind.config.js"), evaluated_template)
end