We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would appreciate guidance on Tailwind & Wordpress blocks in the Roots Docs, and best practices about classes in content.
I added an add_action in setup.php, to put page content into a folder in views
add_action('save_post', function ($post_id, $post) { if($post->post_type === 'page') { $filename = get_template_directory() . '/resources/views/content/' . $post->post_type . 's/' . $post_id . '.html'; file_put_contents($filename, $post->post_content); } }, 10, 2);
And I updated tailwind config include "html"
content: ['./app/**/*.php', './resources/**/*.{php,vue,js,html}'],
Tailwind classes added to pages will get compiled
As an added benefit, when in a dev session, assets are compiled when saving a page
supports yarn build & yarn dev
Tailwind classes in content get compiled
Potentially a large number of files and content to be parsed, especially if expanded to posts or products
Thank you Roots
The text was updated successfully, but these errors were encountered:
https://github.com/broskees/gutenberg-tailwind-safelist
Sorry, something went wrong.
No branches or pull requests
Terms
Summary
I would appreciate guidance on Tailwind & Wordpress blocks in the Roots Docs, and best practices about classes in content.
I added an add_action in setup.php, to put page content into a folder in views
And I updated tailwind config include "html"
Motivation
Why are we doing this?
Tailwind classes added to pages will get compiled
As an added benefit, when in a dev session, assets are compiled when saving a page
What use cases does it support?
supports
yarn build & yarn dev
What is the expected outcome?
Tailwind classes in content get compiled
Potential conflicts / foreseeable issues
Potentially a large number of files and content to be parsed, especially if expanded to posts or products
Additional Context
Thank you Roots
The text was updated successfully, but these errors were encountered: