Ionic build cannot find css

Hi
with “ionic serve” everything works fine. But when i want to build my app with
ionic cordova build android --prod --release
I get an error: Ignoring local @import of “onsenui/css/onsenui.min.css” as resource is missing.
In my app.scss I have this: @import “onsenui/css/onsenui.min.css”;

Can you help me?
Thank you
Marco

1 Like

Hi @wima
Try to put you file

onsenui.min.css

in the theme folder, and add it to your app.scss file:

@import “…/theme/onsenui.min”

I’m not sure that the minified file will work…
If not work, try to copy the content to another file like onsenui.scss and try to do this procedure above.

2 Likes

Thank you. I think I don’t need onsen anymore… :wink:

Nice, I’m sure about this!
Have a nice time!

This really fixed my issue! Thank you!

1 Like