NativeScript/nativescript-cli

'Scss' file changes trigger app refresh instead reloading the view and apply generated 'css'

Closed this issue · 3 comments

Did you verify this is a real problem by searching [Stack Overflow]

Yes

Tell us about the problem

When a 'scss' file is changed the whole app is refreshed instead of applying the changes from the newly generated 'css' file by reloading the view as it normally does with 'css'.

Which platform(s) does your issue occur on?

Both

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.3.1
  • Cross-platform modules: 3.3.0
  • Runtime(s): 3.3.1
  • Plugin(s):
    "dependencies": {
    "nativescript-theme-core": "~1.0.2",
    "tns-core-modules": "~3.3.0"
    },
    "devDependencies": {
    "babel-traverse": "6.26.0",
    "babel-types": "6.26.0",
    "babylon": "6.18.0",
    "lazy": "1.0.11",
    "nativescript-dev-sass": "^1.3.5",
    "nativescript-dev-typescript": "~0.5.0",
    "typescript": "~2.4.2"
    }

Please tell us how to recreate the issue in as much detail as possible.

Deploy an app that uses scss and then change any scss file and save it. The whole app will be refreshed. If you change the 'css' file generated by the same scss, the app won't be refreshed and the change will be applied by reloading the view.

It works as expected. Tested with sass demo app and nativescript@next.

Sass plugin has been released and awaits CLI release https://github.com/NativeScript/nativescript-dev-sass/releases/tag/v.1.4.0