opal / opal-sprockets

Sprockets support for Opal (used to be embedded into Opal from v0.6 up to v0.10)
29 stars 17 forks source link

README not work #8

Closed zw963 closed 7 years ago

zw963 commented 7 years ago

Following not work in Opal 0.10.4

# config.ru

require 'bundler'
Bundler.require

run Opal::Sprockets::Server.new { |s|
  s.append_path 'app'
  s.main = 'application'

  # This can be used to provide a custom index file.
  # s.index_path = 'my_index.erb'
}

If change Opal::Sprockets::Server to Opal::Server, seem like well fine.

zw963 commented 7 years ago

If Add opal-sprockets gem into Gemfile, this config is worked.

But, could anyone explain the following misunderstood topic:

Sprockets support for Opal (embedded into Opal 0.6…0.10)

What is embedded into Opal ?

Thanks.

zw963 commented 7 years ago

... seem like not a issue for me. sorry.