Search code examples
cssvue.jsnativescript

Page specific css not loading


I use nativescript with VueJs

My problem is that my page specified CSS files aren't used.

My start page is start.js and in the same folder I have a start.css but the styles aren't applied.

Do I need to something else, or configure? Because at the docs I said that it normally should work like this.

Folder layout


Solution

  • Always refer the appropriate docs for the flavour, since you are using Vue you must follow the docs here. What you were referring to was for core js one.

    With NativeScript Vue you have to write scoped styles within your component, just the same way how you would do it for a Vue based web app.