Skip to content

Commit 30a6a77

Browse files
committed
build(react-interval-hook): Copy *.md files to build output
1 parent b5e3774 commit 30a6a77

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/react-interval-hook/vite.config.ts

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import react from '@vitejs/plugin-react';
44
import viteTsConfigPaths from 'vite-tsconfig-paths';
55
import dts from 'vite-plugin-dts';
66
import { joinPathFragments } from '@nx/devkit';
7+
import { viteStaticCopy } from "vite-plugin-static-copy";
78

89
// Get current project relative path and strip initial slash / backslash
910
const projectPath = __dirname.replace(process.cwd(), '').substring(1);
@@ -21,6 +22,14 @@ export default defineConfig({
2122
viteTsConfigPaths({
2223
root: '../../',
2324
}),
25+
viteStaticCopy({
26+
targets: [
27+
{
28+
src: '*.md',
29+
dest: '.',
30+
},
31+
],
32+
}),
2433
],
2534

2635
// Uncomment this if you are using workers.

0 commit comments

Comments
 (0)