-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Custom directory with includePaths #154
Comments
There's not enough information in your question for me to answer you. Where is the |
@aexmachina apologies, I will try to add some detail for you.
According to the docs, I would assume this would be all I need: sassOptions: {
includePaths: ['common-styles']
} |
Are you using node-sass 4.4? Does the problem go away if you pin to 4.3? Could be related to this issue: sass/node-sass#1876 |
@aexmachina no, we are on
Is it supposed to work with any directories I throw at it? I assumed it only worked with bower_component or node_modules because Broccoli already knows about those or something. I'm looking for guidance on the correct way to do a custom directory. |
So I installed the local directory with npm and with it in node_modules, I can add it to includePaths. However, |
@rwwagner90 you're still not giving me the information that I've asked for:
I would suggest you |
@aexmachina I did give you the information you asked for, if you look back a couple comments. I will post again:
I cannot use the latest version, and I shouldn't need to, unless this was broken for ember-cli-sass 5.6.0. Ideally, I could move this directory outside all apps and addons, but unsure how I would then make broccoli aware of it. Regardless of my setup, if you could please tell me if including custom directories should work and how I should do it, that's what I'm looking for here. |
Okay. Adding
I've just tried this with node-sass 4.5 and it works for me.
|
@aexmachina try it in an addon, does not seem to work for me. Should it work if the folder is in the root of the addon or outside of the directory entirely or must it be inside? |
I see. Sorry, I don't know what the solution is when used in an addon. |
@aexmachina I would expect it to be some sort of different broccoli tree or something. I don't know much about broccoli. |
What about trying |
I'm having the same issue with an engine (which is technically an addon so that makes sense). The @aexmachina I've tried the includePaths with the |
Somebody really should look into this and work out a solution for the community. Unfortunately I'm just not that person, for a variety of reasons. Anyone want to take this on? @dukex @stefanpenner? |
@DegreeDev can confirm it doesn't work in addons or engines. |
Probably need some special broccoli magic for addon and engine trees. |
ember-cli/ember-cli#9639 may be related (see investigation details) |
Is there a way to include a
common-styles
folder? Everything I see is justbower_components
. When I try to docommon-styles
I get:The text was updated successfully, but these errors were encountered: