nuxt.config.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. target: "static",
  28. css: [],
  29. plugins: [],
  30. components: true,
  31. buildModules: ["@nuxtjs/vuetify"],
  32. modules: [],
  33. // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify
  34. vuetify: {
  35. customVariables: ["~/assets/variables.scss"],
  36. theme: {
  37. dark: true,
  38. themes: {
  39. dark: {
  40. primary: "#ff4444",
  41. accent: colors.grey.darken3,
  42. secondary: colors.amber.darken3,
  43. info: colors.teal.lighten1,
  44. warning: colors.amber.base,
  45. error: colors.deepOrange.accent4,
  46. success: colors.green.accent3,
  47. },
  48. },
  49. },
  50. },
  51. build: {
  52. extend(config, ctx) {
  53. // Run ESLint on save (dev-only)
  54. if (ctx.isDev && ctx.isClient) {
  55. config.module.rules.push({
  56. enforce: "pre",
  57. test: /\.(js|vue)$/,
  58. loader: "eslint-loader",
  59. exclude: /(node_modules)/,
  60. });
  61. }
  62. },
  63. },
  64. };