Comments (8)
@defsdoor Sorry, I swear I double checked that before posting ๐
from tailwindcss-rails.
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.
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.
@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.
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.
@leehericks thanks for this - giving it a go now.
BTW - the option is --skip-javascript
@dmarcoux cheers
from tailwindcss-rails.
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.
Yes, if the app doesn't have webpacker, then it'll use the asset pipeline. --skip-javascript
from tailwindcss-rails.
Related Issues (20)
- Support @config directive and multiple *.tailwind.css files HOT 1
- use scaffold generate password class is nil HOT 2
- `rails tailwindcss:build` causes Segmentation fault for Ruby 3.3.0 on aarch64-linux HOT 3
- tailwindcss:watch terminates with exception HOT 10
- uninitialized constant Tailwindcss (NameError) when launching puma HOT 16
- Watcher not working in Docker even with `tty:true` HOT 2
- How do I get the color palette from the tailwind docs to work? HOT 1
- Allow to choose between Procfile.dev or Puma plugin
- Classes not loaded while building
- TailwindCSS does not support react-on-rails with scss HOT 1
- Run bin/dev, but it failed to install foreman HOT 6
- Not working on x86 architecture
- Rails underscore escaping issues HOT 2
- Tailwind scaffold template is out of sync with rails/rails ERB scaffold template HOT 2
- May be time to remove @tailwindcss/aspect-ratio HOT 4
- Debugger hangs when I use the watcher as plugin! HOT 2
- bin/dev doesn't work for me. HOT 3
- Automate gem build and deployment with github actions HOT 2
- Investigate failing CI build
- Use of gem without sprockets (eg vite) aka standalone use of tailwind generators HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss-rails.