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
{{ message }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Imported CSS files are using relative vs absolute paths depending on if the build is CLI or with Webpack.
For example, let's assume we have a CSS file in app/views/style-common.css which will be imported in 'app/views/sub-page.android.css'
/* Not working with Webpack; Working with CLI build */@importurl("~/views/style-common.css");
/* Working with Webpack; Not Working with CLI build */@importurl("./style-common.css");
Label {
background-color: brown;
color: whitesmoke;
}
build with tns run android and then build with tns run android --bundle. Both cases are requiring to change the CSS import path so that the styles from style-common.css can be loaded.
Note: this happens only when the views are nested (CSS on root level is working as both paths are identical)
The text was updated successfully, but these errors were encountered:
Imported CSS files are using relative vs absolute paths depending on if the build is CLI or with Webpack.
For example, let's assume we have a CSS file in
app/views/style-common.css
which will be imported in 'app/views/sub-page.android.css'Steps to reporudece:
tns run android
and then build withtns run android --bundle
. Both cases are requiring to change the CSS import path so that the styles fromstyle-common.css
can be loaded.Note: this happens only when the views are nested (CSS on root level is working as both paths are identical)
The text was updated successfully, but these errors were encountered: