Sha256: fe23ff06996129d933fb54b5024f7d03b671f0abc69066e947587847ab8fd6be

Contents?: true

Size: 450 Bytes

Versions: 11

Compression:

Stored size: 450 Bytes

Contents

module Webpacker
  class BaseStrategy
    def initialize
      @config = Webpacker.config
    end

    def after_compile_hook
      nil
    end

    private

      attr_reader :config

      def default_watched_paths
        [
          *config.additional_paths.map { |path| "#{path}{,/**/*}" },
          "#{config.source_path}{,/**/*}",
          "yarn.lock", "package.json",
          "config/webpack{,/**/*}"
        ].freeze
      end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shakapacker-6.6.0 lib/webpacker/base_strategy.rb
shakapacker-6.5.6 lib/webpacker/base_strategy.rb
shakapacker-6.5.5 lib/webpacker/base_strategy.rb
shakapacker-6.5.4 lib/webpacker/base_strategy.rb
shakapacker-6.5.3 lib/webpacker/base_strategy.rb
shakapacker-6.5.2 lib/webpacker/base_strategy.rb
shakapacker-6.5.1 lib/webpacker/base_strategy.rb
shakapacker-6.5.0 lib/webpacker/base_strategy.rb
shakapacker-6.4.1 lib/webpacker/base_strategy.rb
shakapacker-6.4.0 lib/webpacker/base_strategy.rb
shakapacker-6.3.0 lib/webpacker/base_strategy.rb