Sha256: ccb680a92ead6e8bf465d42e65b258df4dd4818e4316efcb1d86165f7faf2a83

Contents?: true

Size: 872 Bytes

Versions: 2

Compression:

Stored size: 872 Bytes

Contents

Rails.application.config.middleware.use Snowpacker::SnowpackerProxy, {ssl_verify_none: true}

Snowpacker.configure do |snowpacker|
  # Where to find the config file
  snowpacker.config_dir = Rails.root.join("config", "snowpacker")
  snowpacker.config_file = File.join(snowpacker.config_dir, "snowpack.config.js")

  snowpacker.babel_config_file = File.join(snowpacker.config_dir, "babel.config.js")
  snowpacker.postcss_config_file = File.join(snowpacker.config_dir, "postcss.config.js")

  snowpacker.mount_dir = File.join("app", "javascript")
  snowpacker.build_dir = "public"
  snowpacker.output_path = "snowpacks" # => /public/snowpacks
  snowpacker.port = "4035"

  # Currently, snowpack does not support the hostname option as of version 2.6.4
  # Support should be coming in 2.6.5, so until then, this is just a placeholder.
  snowpacker.hostname = "localhost"
end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
snowpacker-0.0.4.alpha1 examples/rails-without-webpack/config/initializers/snowpacker.rb
snowpacker-0.0.4.alpha1 lib/snowpacker/templates/snowpacker.rb