nuxt.config.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import colors from "vuetify/es5/util/colors";
  2. export default {
  3. // Global page headers: https://go.nuxtjs.dev/config-head
  4. head: {
  5. titleTemplate: "Return YouTube Dislike",
  6. title: "Return YouTube Dislike",
  7. htmlAttrs: {
  8. lang: "en",
  9. },
  10. meta: [
  11. { charset: "utf-8" },
  12. { name: "viewport", content: "width=device-width, initial-scale=1" },
  13. {
  14. hid: "description",
  15. name: "description",
  16. content:
  17. "An extension that returns dislike statistics to YouTube. For now, it only works if a video had public display of dislikes enabled before YouTube removed dislike stats. ",
  18. },
  19. { hid: "og:image", name: "og:image", content: "/logo.png" },
  20. { hid: "theme-color", name: "theme-color", content: "#ff0000" },
  21. ],
  22. link: [
  23. { rel: "icon", type: "image/svg+xml", href: "/logo.svg" },
  24. { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
  25. ],
  26. },
  27. env: {
  28. apiUrl: "https://returnyoutubedislikeapi.com",
  29. },
  30. target: "static",
  31. css: [],
  32. plugins: [],
  33. components: true,
  34. buildModules: ["@nuxtjs/vuetify"],
  35. modules: [],
  36. // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
  37. vuetify: {
  38. customVariables: ["~/assets/variables.scss"],
  39. theme: {
  40. dark: true,
  41. themes: {
  42. dark: {
  43. primary: "#ff4444",
  44. accent: colors.grey.darken3,
  45. secondary: colors.amber.darken3,
  46. info: colors.teal.lighten1,
  47. warning: colors.amber.base,
  48. error: colors.deepOrange.accent4,
  49. success: colors.green.accent3,
  50. },
  51. },
  52. },
  53. },
  54. /*
  55. build: {
  56. extend(config, ctx) {
  57. // Run ESLint on save (dev-only)
  58. if (ctx.isDev && ctx.isClient) {
  59. config.module.rules.push({
  60. enforce: "pre",
  61. test: /\.(js|vue)$/,
  62. loader: "eslint-loader",
  63. exclude: /(node_modules)/,
  64. });
  65. }
  66. },
  67. }
  68. */
  69. };