[RC0] background-image only work with Serve


After upgrade from Beta.11 to RC0 the CSS property background-image in Ionic View or Compiled App not work anymore.

My image is exactly in /src/assets/img/bkg.png. My /src/pages/login/login.scss have:

.scroll-content {
  background: url(../assets/img/bkg.png) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
  background-color: black;
    overflow-y: auto;

If I put background-color: red; works.

Changed background: url(...)...; to background-image: url(...);, same thing.
In www.zip when uploading to Ionic View have the image.

Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
Node Version: v6.7.0


I’ve found the same problem. Any workaround?

1 Like