Closed umeshswamy closed 6 years ago
I am having the same issue. The plugin only appears to watch the app root so you'll have to compile there. So far the Native Script file tree is a real mess between this and all the compiled files.
Do you follow the guide here https://docs.nativescript.org/ui/theme#using-custom-scss-file ? I made a brand new app from ng template and when I add a custom scss for the items in my list everything works. Notice that they are in app/item folder. I'm using latest versions of tns and nativescript-dev-sass Can you provide a sample app that reproduces the case if it's still relevant?
I have the same issue, it sometimes compiled but sometimes its not
Same problem I had. But I found solution here https://github.com/NativeScript/nativescript-dev-sass/issues/57
@ikhsan017 @umeshrs any chances you've upgraded nodejs recently? Try this:
npm rebuild node-sass --force
node_modules
tns platform remove android
or tns platform remove ios
tns add platform ...
But every time I add new .scss file within component I have this problem in development mode again so I run build to make it work tns build android
Can you try to reproduce the issue with the latest v1.5.0 that utilizes chokidar watcher? What I did and worked for me:
Did have the same problem, and was solved with 1.5.0. Great work!
Hi! I made evertyhing as descriped here https://docs.nativescript.org/ui/theme#using-custom-scss-file and it is still not working.
See following path-config (also styleUrls)
Unfortunaetly, it still takes my styiling of _app-common
- what am I doing wrong?
Appreciate any Help!
I am trying to use nativescript-dev-sass plugin and it successfully creates ".css" files from within the app folder only (NOT Subfolders) in my project (app.scss -> app.css). But I want to use component specific css file. That is, inside "app" folder I have component folder "login" and it contains login.scss. (app -> login -> login.scss). The login.css is not getting generated.
Is it not possible to use it like this ? Should I add all my css into "app" folder and set the path to css right in all the components that I create ? Please help.