Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source maps aren't accessible #82

Open
danielwestendorf opened this issue Mar 24, 2020 · 0 comments
Open

Source maps aren't accessible #82

danielwestendorf opened this issue Mar 24, 2020 · 0 comments

Comments

@danielwestendorf
Copy link

When using the following config, my javascript is downloaded, but the browser is unable to download the source map referenced in the JS.

In development.log

Started GET "/offline-be578580ab1d9a1c9d5c.js.map" for XX.XX.XX.XX at 2020-03-24 17:44:22 -0600
ActionController::RoutingError (No route matches [GET] "/offline-be578580ab1d9a1c9d5c.js.map"):

In the browser console:

Source map error: Error: request failed with status 404
Resource URL: http://localhost:3000/offline.js
Source Map URL: offline-be578580ab1d9a1c9d5c.js.map

My serviceworker.rb

Rails.application.configure do
  config.serviceworker.routes.draw do
    match "/offline.js" => "offline.js", pack: true
  end
end

Would it be possible to automatically support source maps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant