```ruby
require "emcee/processors/directive_processor"
require "emcee/processors/import_processor"
require "emcee/processors/script_processor"
require "emcee/processors/stylesheet_processor"
require "emcee/compressors/html_compressor"

module Emcee
  class Railtie < Rails::Railtie
    initializer :add_preprocessors do |app|
      app.assets.register_preprocessor "text/html", DirectiveProcessor
    end

    initializer :add_postprocessors do |app|
      app.assets.register_postprocessor "text/html", :import_processor do |context, data|
        directory = File.dirname(context.pathname)
        ImportProcessor.new.process(context, data, directory)
      end
      app.assets.register_postprocessor "text/html", :script_processor do |context, data|
        directory = File.dirname(context.pathname)
        ScriptProcessor.new.process(context, data, directory)
      end
      app.assets.register_postprocessor "text/html", :stylesheet_processor do |context, data|
        directory = File.dirname(context.pathname)
        StylesheetProcessor.new.process(context, data, directory)
      end
    end

    initializer :add_compressors do |app|
      app.assets.register_bundle_processor "text/html", :html_compressor do |context, data|
        HtmlCompressor.new.compress(data)
      end
    end
  end
end
```

Add back in mime type declaration
user
```ruby
require "emcee/processors/directive_processor"
require "emcee/processors/import_processor"
require "emcee/processors/script_processor"
require "emcee/processors/stylesheet_processor"
require "emcee/compressors/html_compressor"

module Emcee
  class Railtie < Rails::Railtie
    initializer :add_preprocessors do |app|
      app.assets.register_mime_type "text/html", ".html"
      app.assets.register_preprocessor "text/html", DirectiveProcessor
    end

    initializer :add_postprocessors do |app|
      app.assets.register_postprocessor "text/html", :import_processor do |context, data|
        directory = File.dirname(context.pathname)
        ImportProcessor.new.process(context, data, directory)
      end
      app.assets.register_postprocessor "text/html", :script_processor do |context, data|
        directory = File.dirname(context.pathname)
        ScriptProcessor.new.process(context, data, directory)
      end
      app.assets.register_postprocessor "text/html", :stylesheet_processor do |context, data|
        directory = File.dirname(context.pathname)
        StylesheetProcessor.new.process(context, data, directory)
      end
    end

    initializer :add_compressors do |app|
      app.assets.register_bundle_processor "text/html", :html_compressor do |context, data|
        HtmlCompressor.new.compress(data)
      end
    end
  end
end
```
assistant