nuxt.config.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. export default {
  2. // Global page headers: https://go.nuxtjs.dev/config-head
  3. head: {
  4. titleTemplate: "Return YouTube Dislike",
  5. title: "Return YouTube Dislike",
  6. htmlAttrs: {
  7. lang: "en",
  8. },
  9. meta: [
  10. { charset: "utf-8" },
  11. { name: "viewport", content: "width=device-width, initial-scale=1" },
  12. {
  13. hid: "description",
  14. name: "description",
  15. content:
  16. "An extension that returns dislike statistics to YouTube using a combination of scraped dislike stats and estimates extrapolated from extension user data.",
  17. },
  18. { hid: "og:image", name: "og:image", content: "/logo.png" },
  19. { hid: "theme-color", name: "theme-color", content: "#ff0000" },
  20. ],
  21. link: [
  22. { rel: "icon", type: "image/svg+xml", href: "/logo.svg" },
  23. { rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
  24. ],
  25. },
  26. env: {
  27. apiUrl: "https://returnyoutubedislikeapi.com",
  28. },
  29. server: { host: "0.0.0.0", port: 80 }, //LINE FOR DEBUGGING ONLY
  30. target: "static",
  31. css: [],
  32. plugins: [],
  33. components: true,
  34. buildModules: ["@nuxtjs/vuetify"],
  35. modules: ["@nuxtjs/axios", "nuxt-user-agent"],
  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. },
  45. },
  46. },
  47. },
  48. /*
  49. build: {
  50. extend(config, ctx) {
  51. // Run ESLint on save (dev-only)
  52. if (ctx.isDev && ctx.isClient) {
  53. config.module.rules.push({
  54. enforce: "pre",
  55. test: /\.(js|vue)$/,
  56. loader: "eslint-loader",
  57. exclude: /(node_modules)/,
  58. });
  59. }
  60. },
  61. }
  62. */
  63. };