Skip to content

Commit

Permalink
feat: add viteStaticCopy
Browse files Browse the repository at this point in the history
  • Loading branch information
gioboa committed May 24, 2024
1 parent 98f922f commit b1abc71
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"vite": "~4.3.1",
"vite-plugin-dts": "~2.3.0",
"vite-plugin-eslint": "^1.8.1",
"vite-plugin-static-copy": "^1.0.5",
"vite-tsconfig-paths": "~4.2.0",
"vitest": "^0.30.1"
},
Expand Down
10 changes: 7 additions & 3 deletions packages/qwik-image/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/// <reference types="vitest" />

import { qwikVite } from '@builder.io/qwik/optimizer';
import tsconfigPaths from 'vite-tsconfig-paths';
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { dirname, join } from 'path';
import { qwikNxVite } from 'qwik-nx/plugins';
import { fileURLToPath } from 'url';
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { viteStaticCopy } from 'vite-plugin-static-copy';
import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig({
plugins: [
Expand All @@ -21,6 +22,9 @@ export default defineConfig({
// Faster builds by skipping tests. Set this to false to enable type checking.
skipDiagnostics: true,
}),
viteStaticCopy({
targets: [{ src: './README.md', dest: './' }],
}),
],
server: {
fs: {
Expand Down
17 changes: 17 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b1abc71

Please sign in to comment.