App.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ---
  2. extend: '@vue/cli-service/generator/template/src/App.vue'
  3. replace:
  4. - !!js/regexp /<template>[^]*?<\/template>/
  5. - !!js/regexp /\n<script>[^]*?<\/script>\n/
  6. - !!js/regexp / margin-top[^]*?<\/style>/
  7. ---
  8. <%# REPLACE %>
  9. <template>
  10. <div id="app">
  11. <div id="nav">
  12. <router-link to="/">Home</router-link> |
  13. <router-link to="/about">About</router-link>
  14. </div>
  15. <router-view/>
  16. </div>
  17. </template>
  18. <%# END_REPLACE %>
  19. <%# REPLACE %>
  20. <%# END_REPLACE %>
  21. <%# REPLACE %>
  22. }
  23. <%_ if (rootOptions.cssPreprocessor !== 'stylus') { _%>
  24. <%_ if (!rootOptions.cssPreprocessor) { _%>
  25. #nav {
  26. padding: 30px;
  27. }
  28. #nav a {
  29. font-weight: bold;
  30. color: #2c3e50;
  31. }
  32. #nav a.router-link-exact-active {
  33. color: #42b983;
  34. }
  35. <%_ } else { _%>
  36. #nav {
  37. padding: 30px;
  38. a {
  39. font-weight: bold;
  40. color: #2c3e50;
  41. &.router-link-exact-active {
  42. color: #42b983;
  43. }
  44. }
  45. }
  46. <%_ } _%>
  47. <%_ } else { _%>
  48. #nav
  49. padding 30px
  50. a
  51. font-weight bold
  52. color #2c3e50
  53. &.router-link-exact-active
  54. color #42b983
  55. <%_ } _%>
  56. </style>
  57. <%# END_REPLACE %>