-
Notifications
You must be signed in to change notification settings - Fork 332
Closed
Description
Given an engine like the following
module Foo
class Engine < ::Rails::Engine
isolate_namespace Foo # corrected namespace from original post
end
endAnd the corresponding namespaced folder structure
app
assets
stylesheets
foo
application.css.scss
style.css.scss
Relative imports within the engine don't appear to be working. For example:
# app/stylesheets/application.css.scss (host)
@import "foo/application"
# app/stylesheets/foo/application.css.scss (engine)
@import "style" # not found
@import "foo/style" # worksSass appears to be checking relative to the host file instead of relative to application.css.scss itself. Is this the intended behavior? I always thought @import was relative to the current file.
Just want to make sure I'm not doing something stupid. Feels dirty having to namespace the relative requires within the engine itself.
Metadata
Metadata
Assignees
Labels
No labels