Sha256: 21796279c9ead49c42e5e72075a0e6f97fe2d514565edd7cb16fd90d140a901d

Contents?: true

Size: 680 Bytes

Versions: 7

Compression:

Stored size: 680 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  class Application
    module Behavior
      module Assets
        module Watching
          extend Support::Extension

          apply_extension do
            after "configure" do
              config.assets.extensions.each do |extension|
                config.process.watched_paths << File.join(config.presenter.path, "**/*#{extension}")

                # Exclude vendored assets.
                #
                config.process.excluded_paths << File.join(config.assets.externals.path, "*#{extension}")
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pakyow-assets-1.0.6 lib/pakyow/application/behavior/assets/watching.rb
pakyow-assets-1.0.5 lib/pakyow/application/behavior/assets/watching.rb
pakyow-assets-1.0.4 lib/pakyow/application/behavior/assets/watching.rb
pakyow-assets-1.0.3 lib/pakyow/application/behavior/assets/watching.rb
pakyow-assets-1.0.2 lib/pakyow/application/behavior/assets/watching.rb
pakyow-assets-1.0.1 lib/pakyow/application/behavior/assets/watching.rb
pakyow-assets-1.0.0 lib/pakyow/application/behavior/assets/watching.rb