electron-userland / electron-compile

DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
1.01k stars 99 forks source link

SCSS dependencies #272

Open pmarsceill opened 6 years ago

pmarsceill commented 6 years ago

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., https://github.com/electron/electron-compilers/pull/78 and it is unclear to me how to load additional paths for dependencies.

ErraticFox commented 6 years ago

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 commented 6 years ago

@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 commented 5 years ago

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