Sha256: 5d95c76a581c5b78d0b8a06ee177a98a592ee56480703b31922cc980c1e1eb71

Contents?: true

Size: 620 Bytes

Versions: 5

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  module Assets
    module Behavior
      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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pakyow-assets-1.0.0.rc5 lib/pakyow/assets/behavior/watching.rb
pakyow-assets-1.0.0.rc4 lib/pakyow/assets/behavior/watching.rb
pakyow-assets-1.0.0.rc3 lib/pakyow/assets/behavior/watching.rb
pakyow-assets-1.0.0.rc2 lib/pakyow/assets/behavior/watching.rb
pakyow-assets-1.0.0.rc1 lib/pakyow/assets/behavior/watching.rb