8443db907b7c5f0c8c32593840f0477e754f4b92a7b455f1204ed709cd9d2a0d9414a1ba5479877a6d93d962bf240c69224c4686b846172cf7a780c0bcbb0b 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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="nav">
  11. <router-link to="/">Home</router-link> |
  12. <router-link to="/about">About</router-link>
  13. </div>
  14. <router-view/>
  15. </template>
  16. <%# END_REPLACE %>
  17. <%# REPLACE %>
  18. <%# END_REPLACE %>
  19. <%# REPLACE %>
  20. }
  21. <%_ if (rootOptions.cssPreprocessor !== 'stylus') { _%>
  22. <%_ if (!rootOptions.cssPreprocessor) { _%>
  23. #nav {
  24. padding: 30px;
  25. }
  26. #nav a {
  27. font-weight: bold;
  28. color: #2c3e50;
  29. }
  30. #nav a.router-link-exact-active {
  31. color: #42b983;
  32. }
  33. <%_ } else { _%>
  34. #nav {
  35. padding: 30px;
  36. a {
  37. font-weight: bold;
  38. color: #2c3e50;
  39. &.router-link-exact-active {
  40. color: #42b983;
  41. }
  42. }
  43. }
  44. <%_ } _%>
  45. <%_ } else { _%>
  46. #nav
  47. padding 30px
  48. a
  49. font-weight bold
  50. color #2c3e50
  51. &.router-link-exact-active
  52. color #42b983
  53. <%_ } _%>
  54. </style>
  55. <%# END_REPLACE %>