electron-userland / electron-compile

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

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

Closed justintaddei closed 4 years ago

justintaddei commented 5 years ago

Updating to the latest version of Electron (3.0.5) seems to break electron-compile.

Styles are no longer loaded and the dev tools console displays this warning: [Deprecation] CSS cannot be loaded from file: URLs unless they end in a .css file extension.

Obviusly this is because the of my app contains

How do I overcome this and still use electron-compile?

argosk commented 5 years ago

Same here

justintaddei commented 5 years ago

@argosk Any luck? I'm still using an outdated version of Electron because of this

dfeinzeig commented 5 years ago

Same here. Having to use node-sass to compile my scss and just referencing css from my electron app.

justintaddei commented 5 years ago

I implemented the changes from #319 locally until this is resolved. Seemed to require the fewest amount of changes to my code.