Code Monkey home page Code Monkey logo

Comments (4)

tmaier avatar tmaier commented on September 5, 2024 2

Thanks @kevynlebouille,

I think this does not work for Propshaft, as assets.precompile only exists for compatibility reasons. See

config.assets.precompile = []

Turbo::Engine::PRECOMPILE_ASSETS seems also just have the file names, not the path. See https://github.com/hotwired/turbo-rails/blob/6958e0e2742d4744da80128d178e7255989386a4/lib/turbo/engine.rb#L29

from propshaft.

brenogazzola avatar brenogazzola commented on September 5, 2024 1

We are currently taking a look at how we handle paths due to a caching bug and will take a look at this after we handle that.

from propshaft.

kevynlebouille avatar kevynlebouille commented on September 5, 2024

Hi @tmaier ,

I saw something in turbo-rail repo like that (put in your application.rb for instance)

config.after_initialize do
  config.assets.precompile -= Turbo::Engine::PRECOMPILE_ASSETS
end

You could use the same approach for anything come from another gem.

Kevyn

from propshaft.

haberbyte avatar haberbyte commented on September 5, 2024

May not be ideal, but I used this workaround:

# config/initializers/assets.rb
Rails.application.config.after_initialize do |app|
    app.config.assets.paths = %w(
      app/assets/builds
      app/assets/config
      app/assets/images
    )
end

from propshaft.

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.