electron-userland / electron-compile

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

Error Import css files in app.ts or app.js #280

Open kidqn opened 6 years ago

kidqn commented 6 years ago

I tried import css/scss files on app.ts or app.js but it didn't work. It only works if i import ONLY css extension in HTML. Since we just import required css styles, how should we deal with this problem?

Thanks for any helps!

DEEEZIGN commented 6 years ago

$('head').append("<link rel="stylesheet" href="./assets/stylus/style'+ settings.get('theme') +'.styl"/>'); Works for me so