electron-userland / electron-compile

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

Cannot use SCSS/LESS in 3.0 beta #306

Open CynicalBusiness opened 6 years ago

CynicalBusiness commented 6 years ago

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

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

justintaddei commented 5 years ago

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 😢