Skip to content
New issue

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

Update Tailwind config so jit-refresh.css is git ignored #559

Merged
merged 1 commit into from
May 21, 2022

Conversation

jaredcwhite
Copy link
Member

Resolves #547

To set it up in an existing project, just make sure you've added frontend/styles/jit-refresh.css to your .gitignore file (you might have to delete it and commit first). Then update your Rakefile so it has the line

sh "touch frontend/styles/jit-refresh.css"

right at the top of both the :build task and the :dev task. For example:

namespace :frontend do
  desc "Build the frontend with esbuild for deployment"
  task :build do
    sh "touch frontend/styles/jit-refresh.css"
    sh "yarn run esbuild"
  end

  desc "Watch the frontend with esbuild during development"
  task :dev do
    sh "touch frontend/styles/jit-refresh.css"
    sh "yarn run esbuild-dev"
  rescue Interrupt
  end
end

@render
Copy link

render bot commented May 20, 2022

@render
Copy link

render bot commented May 20, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow the Tailwind jit-refresh.css to be optional and added to .gitignore
1 participant