Skip to content
Snippets Groups Projects
Select Git revision
  • a0cb1d83320dc60de93fd91835b968199021dae2
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2449-GuidPidSlugToProjectSettings
  • Issue/2309-docs
  • Issue/2355-topLevelOrg
  • Issue/2328-noFailOnLog
  • Hotfix/2371-fixGitLabinRCV
  • Issue/2287-guestRole
  • Fix/xxxx-activateGitlab
  • Test/xxxx-enablingGitLab
  • Issue/2349-gitlabHttps
  • Issue/2259-updatePids
  • Issue/2101-gitLabResTypeUi
  • Hotfix/2202-fixNaNQuota
  • Issue/2246-quotaResoval
  • Issue/2221-projectDateCreated
  • Hotfix/2224-quotaSizeAnalytics
  • Fix/xxxx-resourceVisibility
  • Issue/2000-gitlabResourcesAPI
  • v4.4.3
  • v4.4.2
  • v4.4.1
  • v4.4.0
  • v4.3.4
  • v4.3.3
  • v4.3.2
  • v4.3.1
  • v4.3.0
  • v4.2.8
  • v4.2.7
  • v4.2.6
  • v4.2.5
  • v4.2.4
  • v4.2.3
  • v4.2.2
  • v4.2.1
  • v4.2.0
  • v4.1.1
  • v4.1.0
41 results

projectapi.nomad

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    vite.config.js 1.32 KiB
    import path from "node:path";
    import { defineConfig } from "vite";
    import vue from "@vitejs/plugin-vue2";
    
    import { nodePolyfills } from 'vite-plugin-node-polyfills';
    
    import WindiCSS from "vite-plugin-windicss";
    import Components from "unplugin-vue-components/vite";
    
    const config = defineConfig({
      resolve: {
        alias: {
          "@": `${path.resolve(__dirname, "src")}`,
        },
        dedupe: ["vue"],
      },
    
      define: {
        'process.env.MOCKUP': process.env.MOCKUP
      },
    
      build: {
        commonjsOptions: {
          strictRequires: true
        },
        target: "esnext",
        rollupOptions: {
          output: {
            manualChunks: {
              "@coscine/api-client": ["@coscine/api-client"],
              "@coscine/form-generator": ["@coscine/form-generator"],
              "bootstrap-vue": ["bootstrap-vue"],
              "rdf-parse": ["rdf-parse"],
            },
          },
        }
      },
    
      plugins: [
        nodePolyfills(),
        vue(),
        WindiCSS(),
        Components({
          dts: 'src/components.d.ts',
          include: [/\.vue$/, /\.vue\?vue/],
          exclude: [/[\\/]node_modules[\\/]/, /[\\/]\.git[\\/]/, /[\\/]\.nuxt[\\/]/],
        }),
      ],
      
      appType: "spa",
    
      server: {
        host: true,
        port: 9234,
      },
    
      test: {
        globals: true,
        environment: 'happy-dom',
        setupFiles: [path.resolve(__dirname, 'test/setup.ts')],
        reporters: 'dot',
      },
    });
    
    export default config;