Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

SCSS dependencies #272

Open
pmarsceill opened this issue Oct 13, 2017 · 3 comments
Open

SCSS dependencies #272

pmarsceill opened this issue Oct 13, 2017 · 3 comments

Comments

@pmarsceill
Copy link

When defining a path to load additional Sass/SCSS dependencies in .compilerc is it proper to use...

{
  "text/scss": {
    "paths": "./node_modules"
  }
}

or

{
  "text/scss": {
    "includePaths": "./node_modules"
  }
}

I've found a few conflicting PRs e.g., electron-userland/electron-compilers#78 and it is unclear to me how to load additional paths for dependencies.

@ErraticFox
Copy link

ErraticFox commented Nov 16, 2017

Did you ever figure this out? I tried both of these in my .compilerc and they both gave an error saying paths and includePaths was a invalid option.

@pmarsceill
Copy link
Author

@ErraticFox no, I never did. After talking to some folks on the electron team, it seems like if I want to use SCSS dependencies from npm, I should probably just use vanilla Electron and manually setup my sass compiler using node-sass and setup the includePaths as I would with any other web project.

@dfeinzeig
Copy link

@pmarsceill , @ErraticFox , any updates on this? trying to figure out best way to include sass within react components while using electron-compile.

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

No branches or pull requests

4 participants
@pmarsceill @dfeinzeig @ErraticFox and others