Skip to content

Commit b8ada95

Browse files
committed
init vite config
1 parent bc66b4d commit b8ada95

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/packages/block/vite.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from 'vite';
2+
import { rmSync } from 'fs';
3+
import { getDefaultConfig } from '../../vite-config-base';
4+
5+
const dist = '../../../dist-cms/packages/block';
6+
7+
// delete the unbundled dist folder
8+
rmSync(dist, { recursive: true, force: true });
9+
10+
export default defineConfig({
11+
...getDefaultConfig({
12+
dist,
13+
entry: {
14+
manifests: 'manifests.ts',
15+
'umbraco-package': 'umbraco-package.ts',
16+
},
17+
}),
18+
});

0 commit comments

Comments
 (0)