Skip to content

Commit b1abc71

Browse files
committed
feat: add viteStaticCopy
1 parent 98f922f commit b1abc71

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"vite": "~4.3.1",
4848
"vite-plugin-dts": "~2.3.0",
4949
"vite-plugin-eslint": "^1.8.1",
50+
"vite-plugin-static-copy": "^1.0.5",
5051
"vite-tsconfig-paths": "~4.2.0",
5152
"vitest": "^0.30.1"
5253
},

packages/qwik-image/vite.config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
/// <reference types="vitest" />
22

33
import { qwikVite } from '@builder.io/qwik/optimizer';
4-
import tsconfigPaths from 'vite-tsconfig-paths';
5-
import { defineConfig } from 'vite';
6-
import dts from 'vite-plugin-dts';
74
import { dirname, join } from 'path';
85
import { qwikNxVite } from 'qwik-nx/plugins';
96
import { fileURLToPath } from 'url';
7+
import { defineConfig } from 'vite';
8+
import dts from 'vite-plugin-dts';
9+
import { viteStaticCopy } from 'vite-plugin-static-copy';
10+
import tsconfigPaths from 'vite-tsconfig-paths';
1011

1112
export default defineConfig({
1213
plugins: [
@@ -21,6 +22,9 @@ export default defineConfig({
2122
// Faster builds by skipping tests. Set this to false to enable type checking.
2223
skipDiagnostics: true,
2324
}),
25+
viteStaticCopy({
26+
targets: [{ src: './README.md', dest: './' }],
27+
}),
2428
],
2529
server: {
2630
fs: {

pnpm-lock.yaml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)