abevoelker / simple_form_tailwind_css

Tailwind components for Simple Form
MIT License
31 stars 3 forks source link

Add simple_form initializer to tailwind.config.js #10

Open martinGerez opened 10 months ago

martinGerez commented 10 months ago

If you only use some classes of tailwind inside Simple Form Wrappers, I only got it to work properly adding also config/initializers/simple_form.rb.

So, you will need to add the following lines:

content: [
    `${process.env.SIMPLE_FORM_TAILWIND_DIR}/**/*.rb`,
    `./config/initializers/simple_form.rb`,
    ...
  ],