Skip to content

Engine registers wrong asset path for Javascript files #730

@jfi

Description

@jfi

The lexxy.assets initializer in lib/lexxy/engine.rb adds app/javascript to the asset paths:

  initializer "lexxy.assets" do |app|                                                                                   
    if Rails.application.config.respond_to?(:assets)                                                                    
      app.config.assets.paths << root.join("app/assets/stylesheets")
      app.config.assets.paths << root.join("app/javascript")
    end
  end

However, the JavaScript files actually live in app/assets/javascript/, not app/javascript/ (which doesn't exist in the gem).

This means the asset pipeline never discovers the JS files. The stylesheet path is correct (app/assets/stylesheets), so CSS loads fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions