Git Product home page Git Product logo

Comments (8)

leehericks avatar leehericks commented on August 15, 2024 1

@defsdoor Sorry, I swear I double checked that before posting ๐Ÿ˜…

from tailwindcss-rails.

dhh avatar dhh commented on August 15, 2024

Is this using webpacker or the asset pipeline? If webpacker, it is what it is. We don't really have any control over that.

from tailwindcss-rails.

defsdoor avatar defsdoor commented on August 15, 2024

Sorry - this is webpacker - do I have an option to not use webpacker yet when rolling with hotwire and stimulus (this is a brand new application I'm writing primarily to familiarise myself with these two) ?

from tailwindcss-rails.

dmarcoux avatar dmarcoux commented on August 15, 2024

@defsdoor The short tutorial on https://hotwire.dev/ doesn't rely on webpacker, it's using the asset pipeline. This should get you started.

from tailwindcss-rails.

leehericks avatar leehericks commented on August 15, 2024

Hereโ€™s how I start a new Hotwire app without webpacker.

rails new myapp --skip-javascripts

This skips webpacker, turbolinks and rails ujs.

Then add gem 'hotwire-rails' to your gemfile

bundle install
rails hotwire:install

This gives you a new rails app with a beautiful assets/javascripts folder with turbo and stimulus ready to go.

from tailwindcss-rails.

defsdoor avatar defsdoor commented on August 15, 2024

@leehericks thanks for this - giving it a go now.

BTW - the option is --skip-javascript

@dmarcoux cheers

from tailwindcss-rails.

defsdoor avatar defsdoor commented on August 15, 2024

All seems to work ok - thank you all.

I'm really interested in tailwind - is anyone aware of a project or efforts to create a sass based version ? To me, using sass mixins is much more comfortable than postcss (and the beast it requires) rendering of the css.

I've already hit a need to add a minor customisation.
I guess I could do any customisations infrequently and generate a new tailwind.css outside of the development environment when needed.

from tailwindcss-rails.

dhh avatar dhh commented on August 15, 2024

Yes, if the app doesn't have webpacker, then it'll use the asset pipeline. --skip-javascript

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.