Git Product home page Git Product logo

Comments (6)

iraszl avatar iraszl commented on July 16, 2024 12

I'm not sure if this is the ideal solution, but this worked for me. I added this to tailwind.config.css:
purge: { enabled: process.env.NODE_ENV === 'production', content: ['./app/views/**/*.*', './app/helpers/**/*.*'], },

from tailwindcss-rails.

dhh avatar dhh commented on July 16, 2024 1

We've dropped webpack support from this gem. It's now exclusively intended for use with sprockets. Will introduce another, easy way to add TW to a webpack setup. But doesn't make sense to share it in the same gem.

from tailwindcss-rails.

jefflyne avatar jefflyne commented on July 16, 2024

I also need a Webpacker solution since I don't have Sprockets installed. I'm trying to create an app with a react front end and I'm following the tutorial for shakacode/react_on_rails. Please advise if anyone knows a workaround.

from tailwindcss-rails.

CHOISEUNGYOUN avatar CHOISEUNGYOUN commented on July 16, 2024

I also wonder whether it's possible to add another path for purging since I've been using templates with Viewcomponent

from tailwindcss-rails.

connordoner avatar connordoner commented on July 16, 2024

Sorry to reopen this, DHH, but is there anything more that you can share about your plans, please? It's going to soon block our progress @gurste, so if there's anything that we can do to contribute, we're happy to help. 😄

from tailwindcss-rails.

dixpac avatar dixpac commented on July 16, 2024

Since I've removed the webpacker support and we still use webpacker inside our company, I feel somewhat responsible to create webpacker port of this gem 😄

https://github.com/WizardComputer/tailwindcss-rails-webpacker

Also added webpacker purging in there.

Anyone who is interested in contributing you are welcome :)

from tailwindcss-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.