Sha256: 9bbed6b96fa51d7d7ebb94fffe8e58556823cec71a2828b4f2aa218b62d95d3d

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

module Shakapacker
  class BaseStrategy
    def initialize
      @config = Shakapacker.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}{,/**/*}",
          "package.json", "package-lock.json", "yarn.lock",
          "pnpm-lock.yaml", "bun.lockb",
          "config/webpack{,/**/*}"
        ].freeze
      end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shakapacker-8.0.2 lib/shakapacker/base_strategy.rb
shakapacker-8.0.1 lib/shakapacker/base_strategy.rb