Skip to content

Wildcard asset notation no longer works? #45

Open
@Vernadsky

Description

@Vernadsky

I've just upgraded to the latest version of typescript-rails, and now I get the following error:

Sprockets::Rails::Helper::AssetNotPrecompiled at /
Asset was not declared to be precompiled in production.
Add Rails.application.config.assets.precompile += %w( dashboard.js ) to config/initializers/assets.rb and restart your server

It works if I specify dashboard.jsdirectly in assets.rb (the file is actually dashboard.ts).
But normally wildcards work fine:

Rails.application.config.assets.precompile += %w(lib/*.js *.js)

I've tried variations with .ts instead of .js.
Did one of the commits break wildcard support?

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