using tailwind simple form builder

This commit is contained in:
2022-12-25 23:32:34 +02:00
parent 946f7625be
commit b0680404d3
10 changed files with 254 additions and 26 deletions

View File

@ -1,9 +1,11 @@
const defaultTheme = require('tailwindcss/defaultTheme')
const execSync = require('child_process').execSync;
const output = execSync('bundle show merged', { encoding: 'utf-8' });
const output = execSync('bundle show merged', { encoding: 'utf-8' });
const fullname = output.trim() + '/app/**/*.{haml,html,rb}' ;
console.log(fullname);
const output2 = execSync('bundle show simple_form_tailwind_css', { encoding: 'utf-8' });
const fullname2 = output2.trim() + '/lib/**/*.rb' ;
module.exports = {
content: [
@ -11,7 +13,7 @@ module.exports = {
'./app/helpers/**/*.rb',
'./app/javascript/**/*.js',
'./app/views/**/*.{erb,haml,html,slim}' ,
fullname
fullname , fullname2
],
theme: {
extend: {