1

im working with Java, Javalin and vue.

I cant figure out how to get css working without just having it all in-line within the tags in my app.vue.

so i dont want:

<style lang="css">

//lots

//of

//lines

//here

</style>

what i found while searching, was people doing things like this:

<style scoped src="/assets/styles/styles.css"></style>

or

<style scoped lang="css">
  @import "~/assets/styles.css";
</style>

these would be great. but it did not work for me somehow.

im very much an über noob with intellij and java, i mostly do web-dev frontend stuff in vim. but for this project its all intelliJ. i just hate working on giant long files. when i could split it up in more files. so if anyone have a super simple way of of just linking it. that would be amazing. :)

Walter
  • 11
  • 1
  • what problems using either of these ways have you faced? see also https://vuejs.org/v2/guide/single-file-components.html#What-About-Separation-of-Concerns – lena Oct 21 '20 at 20:13

0 Answers0