Skip to content

Asset precompilation when changes only occur in included gems #369

Description

@Epigene

It seems that mina does not detect asset changes and therefore skips precompilation when the changes have only occured in included gems (Rails engines).

So far we solve this oversight by forcing precompilation selectively with a check in deploy block

deploy do
  if hash.extras.include?("compile")
    invoke :'rails:assets_precompile:force'
  else
    invoke :'rails:assets_precompile'
  end
end

And running

mina deploy[compile]

Is there any configuration to be done to expose mina to asset changes in gems or is this a feature yet to be developed?

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