You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// run command
parcel app/index.html --target electron --out-dir build/app --public-url .
🤔 Expected Behavior
Apply styles without any error.
😯 Current Behavior
Cannot import CSS
💁 Possible Solution
I don't have any idea 😥
🔦 Context
I don't have any problem when the target is browser
I found that importing CSS file as relative path is working, but it doesn't work when I import CSS from node_modules as absolute path when the target is electron. parcel build has the same issue not only serve.
I hit this while trying to bring in a library that contains .css files. I had to switch back to target: 'browser' because I don't have control over the source.
In order to access the electron package, I did this:
🐛 bug report
I cannot import CSS from node_modules when the target of parcel bundler is electron.
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
Apply styles without any error.
😯 Current Behavior
Cannot import CSS
💁 Possible Solution
I don't have any idea 😥
🔦 Context
I don't have any problem when the target is browser
I found that importing CSS file as relative path is working, but it doesn't work when I import CSS from node_modules as absolute path when the target is electron.
parcel build
has the same issue not onlyserve
.💻 Code Sample
I created a sample repository that makes the same error of this issue. https://github.com/drakang4/parcel-electron-css-bug
🌍 Your Environment
The text was updated successfully, but these errors were encountered: