Using a YML file to configure settings

Created on 13 July 2023, 12 months ago
Updated 14 May 2024, about 2 months ago

Problem/Motivation

Firstly, thanks for the great module - it's a great way to use Tailwind with Drupal.

Just wondering if you considered using a YML file to configure the settings instead of putting them on the theme settings page. This would have the advantage of keeping the settings in code instead of in the database.

Proposed resolution

The YML file would be added in the theme as THEME_NAME.tailwind_jit.yml and picked up by a plugin manager.

It could look something like this:

THEME_NAME.tailwind_jit:
  compile_html_requests: true
  html_input_file: css/example.css
  compile_ajax_requests: true
  ajax_input_file: css/example_ajax.css

Granted, this would need to be done in a 2.x branch as it is a major change.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡°Hong Kong phparkle

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024