Bug Report
- [x] bug report -> please search issues before submitting
- [ ] feature request
CLI Version
@angular/cli: 1.0.0
node: 7.8.0
os: darwin x64
@angular/common: 4.0.1
@angular/compiler: 4.0.1
@angular/core: 4.0.1
@angular/forms: 4.0.1
@angular/http: 4.0.1
@angular/platform-browser: 4.0.1
@angular/platform-browser-dynamic: 4.0.1
@angular/router: 4.0.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.1
Repro steps.
ng set packageManager=yarn --global
ng new MyProj --style scss -sd client
yarn
make a directory named scss that will included some global style
And now i got a direcotry like this
├── app/
│ ├── app.component.html
│ ├── app.component.scss
│ ├── app.component.spec.ts
│ ├── app.component.ts
│ ├── app.module.ts
├── assets/
├── environments/
│ ├── environment.prod.ts
│ └── environment.ts
├── favicon.ico
├── index.html
├── main.ts
├── polyfills.ts
├── scss/
│ ├── colors.scss
│ ├── entry.scss
│ ├── fonts.scss
│ ├── mixins.scss
│ └── variables.scss
├── styles.scss
├── test.ts
├── tsconfig.app.json
├── tsconfig.spec.json
└── typings.d.ts
- Add a variable in
scss/colors.scss
- Import
colors.scss and reference the variable $blue in file app/app.component.scss
@import '../scss/colors';
h1 {
color: $blue
}
After all above step, i changed the value of $blue, and saved what i have changed. I noticed that browser have refreshed, but nothing change. But if i saved the same file again without any change, i found the browser refreshed and show me what i expected.
The log given by the failure.
- Saved file first time, i got this log:
[0] Hash: 1ccd1622b72d31261e5f
[0] Time: 802ms
[0] chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial]
[0] chunk {1} main.bundle.js, main.bundle.js.map (main) 21.6 kB {3} [initial]
[0] chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 9.89 kB {4} [initial]
[0] chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 1.4 MB [initial]
[0] chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry]
[0] webpack: Compiled successfully.
- Saved file second time without any change, i got this log:
[0] Hash: b02ca63f909fa66d4868
[0] Time: 830ms
[0] chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial]
[0] chunk {1} main.bundle.js, main.bundle.js.map (main) 21.6 kB {3} [initial] [rendered]
[0] chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 9.89 kB {4} [initial]
[0] chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 1.4 MB [initial]
[0] chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry]
[0] webpack: Compiled successfully.
You must notice that there one more symbol [rendered] after i saved file 2nd time
Desired functionality.
Is there anybody who can tell me how to solve that, or point out my fault. Thank you, guys. lol
Bug Report
CLI Version
Repro steps.
ng set packageManager=yarn --globalng new MyProj --style scss -sd clientyarnmake a directory named scss that will included some global styleAnd now i got a direcotry like this
scss/colors.scsscolors.scssand reference the variable $blue in fileapp/app.component.scssAfter all above step, i changed the value of
$blue, and saved what i have changed. I noticed that browser have refreshed, but nothing change. But if i saved the same file again without any change, i found the browser refreshed and show me what i expected.The log given by the failure.
[0] Hash: 1ccd1622b72d31261e5f [0] Time: 802ms [0] chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [0] chunk {1} main.bundle.js, main.bundle.js.map (main) 21.6 kB {3} [initial] [0] chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 9.89 kB {4} [initial] [0] chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 1.4 MB [initial] [0] chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [0] webpack: Compiled successfully.[0] Hash: b02ca63f909fa66d4868 [0] Time: 830ms [0] chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [0] chunk {1} main.bundle.js, main.bundle.js.map (main) 21.6 kB {3} [initial] [rendered] [0] chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 9.89 kB {4} [initial] [0] chunk {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 1.4 MB [initial] [0] chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [0] webpack: Compiled successfully.You must notice that there one more symbol [rendered] after i saved file 2nd time
Desired functionality.
Is there anybody who can tell me how to solve that, or point out my fault. Thank you, guys. lol