Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.

Enable CSS injection instead of full browser reload when changing global SCSS file #1443

Closed
MilosR opened this issue Jun 6, 2018 · 1 comment

Comments

@MilosR
Copy link

MilosR commented Jun 6, 2018

Short description of the problem:

Is there any way to configure CSS injection in browser when changing global SCSS files (eg. app.scss, not part of any component) and avoid full rebuild and browser refresh? It is very slow and time consuming in cases when you need custom styling.

What behavior are you expecting?

Live CSS inject / replacement, only CSS rebuild.

Steps to reproduce:

  1. run "ionic serve"
  2. change content of 'app.scss' file
  3. you will see full rebuild, "rebuilding..." window in browser and browser refresh

Which @ionic/app-scripts version are you using?


cli packages:

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.9
    Cordova Platforms  : android 7.0.0
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v9.5.0
    npm  : 5.6.0
    OS   : Windows 10

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Similar issues:

#387
angular/angular-cli#3869

@MilosR MilosR closed this as completed Jun 6, 2018
@haskelcurry
Copy link

I'm sorry to bother you, but why did you close it? @MilosR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants