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

Cannot use SCSS/LESS in 3.0 beta #306

Open
CynicalBusiness opened this issue Jul 25, 2018 · 2 comments
Open

Cannot use SCSS/LESS in 3.0 beta #306

CynicalBusiness opened this issue Jul 25, 2018 · 2 comments

Comments

@CynicalBusiness
Copy link

The SCSS/LESS compilers (and in theory, any CSS compiler) do not work in electron-prebuilt-compile@3.0.0-beta.1 due to a new Chrome feature added somewhere between 59 an 66.

When you try to use SCSS/LESS, chrome spits the following warning into the console:

[Deprecation] CSS cannot be loaded from `file:` URLs unless they end in a `.css` file extension.

The resulting index.scss (or whatever file name) is then loaded as a blank text/plain and is completely ignored. I don't think this is necessarily a problem with Chrome/Electron, but rather in how electron-compile works, which is why I brought this here.

@nikolaisdfsd
Copy link

I have the same issue, the only way is to compile css outside and in this way I don't need electron-compile :(

@justintaddei
Copy link

This needs to be addressed. It will break every app using electron-compile now that electron v3.0.5 is stable. I am currently in the process of downgrading electron so that my app works again 😢

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

3 participants