Giter Site home page Giter Site logo

Comments (11)

stefanoc avatar stefanoc commented on July 28, 2024 3

@dhh personally I never do it, but I was having some trouble with assets recompilation in development, and one of the suggested solutions was to set this in config/development.rb:

config.assets.compile = true
config.assets.digest = false

This is how I stumbled upon this issue.

from stimulus-rails.

abumalick avatar abumalick commented on July 28, 2024 2

I was turning it off because of this issue with livereload: guard/guard-livereload#169 (comment)

from stimulus-rails.

tripptuttle avatar tripptuttle commented on July 28, 2024 1

Hi @mrkcor, I just came to this repo to report the same bug. Thank you for the workarounds!

from stimulus-rails.

awwaiid avatar awwaiid commented on July 28, 2024 1

Possibly related to rails/sprockets#749

from stimulus-rails.

stefanoc avatar stefanoc commented on July 28, 2024 1

@dhh this is easily reproducible with the latest stable Rails release (7.0.7):

% rails new assets-test && cd assets-test
% echo "Rails.application.config.assets.digest = false" >> config/initializers/assets.rb
% bin/rails s &
% curl http://localhost:3000/assets/stimulus-loading.js 

from stimulus-rails.

dhh avatar dhh commented on July 28, 2024 1

I had missed this was a specific issue with turning off assets digest. Why are folks doing that? Keeping those digests in development is the preferred approach. But I'll reopen anyway.

from stimulus-rails.

jontebol avatar jontebol commented on July 28, 2024 1

I had missed this was a specific issue with turning off assets digest. Why are folks doing that? Keeping those digests in development is the preferred approach. But I'll reopen anyway.

@dhh, I also got bitten by this when used together with guard/guard-livereload#169 (comment). Live reloading is wonderful together with Tailwind, makes designing directly in the browser so quick that I've stopped using Figma. However, setting up live reloading in Rails is usually a hassle. Have used chokidar with node earlier, and now using guard + rack-livereload. Neither option is as simple as it should be. Would be great to have a canonical and easy way to get it working on a new rails app without lot's of tricky dependencies.

from stimulus-rails.

mrkcor avatar mrkcor commented on July 28, 2024

You're welcome @tripptuttle 😃

from stimulus-rails.

rogerkk avatar rogerkk commented on July 28, 2024

Thanks @mrkcor, this helped me as well!

from stimulus-rails.

mrkcor avatar mrkcor commented on July 28, 2024

You're welcome @rogerkk 🙂

from stimulus-rails.

dhh avatar dhh commented on July 28, 2024

Unable to reproduce on latest Rails and latest dependencies against a new stock app.

from stimulus-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.