Sha256: 34357d5963762338f12e6487d237894a935a2fcc0ddb1c04459a9ec427c71e63

Contents?: true

Size: 491 Bytes

Versions: 10

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

module Jekyll::Vite::Config
  # Override: Provide default values for a typical Jekyll site.
  def config_defaults(**opts)
    require 'jekyll'
    cache_dir = Jekyll.configuration['cache_dir'] || '.jekyll-cache'
    super(**opts, mode: Jekyll.env).tap do |defaults|
      defaults['public_dir'] = cache_dir
      defaults['build_cache_dir'] = File.join(cache_dir, 'vite-build')
    end
  end
end

ViteRuby::Config.singleton_class.prepend(Jekyll::Vite::Config)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
jekyll-vite-3.0.4 lib/jekyll/vite/config.rb
jekyll-vite-3.0.3 lib/jekyll/vite/config.rb
jekyll-vite-3.0.2 lib/jekyll/vite/config.rb
jekyll-vite-3.0.1 lib/jekyll/vite/config.rb
jekyll-vite-3.0.0 lib/jekyll/vite/config.rb
jekyll-vite-3.0.0.beta.1 lib/jekyll/vite/config.rb
jekyll-vite-2.0.0.beta.1 lib/jekyll/vite/config.rb
jekyll-vite-1.0.1 lib/jekyll/vite/config.rb
jekyll-vite-1.0.0 lib/jekyll/vite/config.rb
jekyll-vite-0.0.3 lib/jekyll/vite/config.rb