Quantcast
Viewing all articles
Browse latest Browse all 4830

How can I share files (CSS/Sass) between addons?

@samselikoff wrote:

I’m trying to figure out how to make a Sass file from my addon available so that other addons can @import it.

  • If I put it under addon/styles/addon.scss, it gets auto-concat’ed into vendor.js
  • If I put it under app/styles/my-addon-name.scss, then the host app can explicitly @import it. (But I’m trying to get an intermediate addon to be able to @import it.)
  • I’ve tried putting a test file under addon/styles/foo.scss and configuring a second addon’s importPaths to point to that location, to no avail.

I’m trying to understand at a higher level the flow/architecture that these style trees. I think that would help me narrow down the config I need.

So to start, let’s say Addon B depends on Addon A. What hook/tree should Addon B look for *.scss files in Addon A’s addon/styles folder?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles