Login.css is never included in login_css.css in production. As if it's not frustrating enough that a css is missing in the compiled production css, I added some debugging lines in the combined method in package.rb:
def combined
session = Rack::Test::Session.new(@assets.app)
paths.map { |path|
puts path
result = session.get(path)
puts result
if result.body.respond_to?(:force_encoding)
response_encoding = result.content_type.split(/;\s*charset\s*=\s*/).last.upcase rescue 'ASCII-8BIT'
result.body.force_encoding(response_encoding).encode(Encoding.default_external || 'ASCII-8BIT') if result.status == 200
puts result.body
else
result.body if result.status == 200
end
}.join("\n")
end
Not sure why I getting SAMEORIGIN error when I'm merely having my css compiled, and everything is referenced with relative path. Also, not sure about the https://example.org/css/login.css
I encountered a case where one of my css are not being rendered in production.
Here's my css specification:
Login.css is never included in login_css.css in production. As if it's not frustrating enough that a css is missing in the compiled production css, I added some debugging lines in the
combined
method in package.rb:Surprisingly, I'm getting a CORS exception:
Not sure why I getting SAMEORIGIN error when I'm merely having my css compiled, and everything is referenced with relative path. Also, not sure about the https://example.org/css/login.css