# frozen_string_literal: true require "rake" module NeetoCommonsBackend module Initializers module PostCompilation def self.run if Rake::Task.task_defined?("assets:clean") Rake::Task["assets:clean"].enhance { Rake::Task["assets:post_compilation"].invoke } else Rake::Task.define_task("assets:clean") { Rake::Task["assets:post_compilation"].invoke } end end end end end