GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — knittingEditor/vite.shared.ts at main · K0mork/knittingEditor

Expand file tree

/

vite.shared.ts

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
27 lines (26 loc) · 916 Bytes
/

vite.shared.ts

Copy path

File metadata and controls

27 lines (26 loc) · 916 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import react from '@vitejs/plugin-react';
import type { ViteUserConfig } from 'vitest/config';
import { thirdPartyNotices } from './scripts/third-party-notices.mjs';
/**
* Web版とiOS版で共通のVite設定。両ビルドの差分(`modulePreload`、ソースマップ、workspaceの参照許可、
* テスト対象、Web版の`__APP_BUILD__`、CSPとpublic配下の索引ページを生成するプラグイン)は
* 各`vite.config.ts`で足す。プラグインは呼び出しごとに作り直す。
*/
export function sharedViteConfig(): ViteUserConfig {
const notices = thirdPartyNotices();
return {
base: '/',
plugins: [react(), notices.plugin],
worker: {
plugins: () => [notices.workerPlugin()],
},
build: {
target: ['es2022', 'safari16.4'],
sourcemap: true,
chunkSizeWarningLimit: 900,
},
test: {
environment: 'jsdom',
},
};
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.