nuxt.config.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. theme: {
  39. dark: true,
  40. themes: {
  41. dark: {
  42. primary: "#ff4444",
  43. },
  44. },
  45. },
  46. },
  47. /*
  48. build: {
  49. extend(config, ctx) {
  50. // Run ESLint on save (dev-only)
  51. if (ctx.isDev && ctx.isClient) {
  52. config.module.rules.push({
  53. enforce: "pre",
  54. test: /\.(js|vue)$/,
  55. loader: "eslint-loader",
  56. exclude: /(node_modules)/,
  57. });
  58. }
  59. },
  60. }
  61. */
  62. };