Skip to content

Commit f612aed

Browse files
author
Elena Gromova
committed
changed config for publishing as npm package
1 parent 7741342 commit f612aed

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

vite.config.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@ import react from '@vitejs/plugin-react';
33
import { resolve } from 'path';
44

55
// https://vitejs.dev/config/
6-
// export default defineConfig({
7-
// plugins: [react()],
8-
// build: {
9-
// lib: {
10-
// // Could also be a dictionary or array of multiple entry points
11-
// entry: resolve(__dirname, 'src/app.tsx'),
12-
// name: 'hexlet-flowbot',
13-
// // the proper extensions will be added
14-
// fileName: 'hexlet-flowbot',
15-
// },
16-
// rollupOptions: {
17-
// external: ['react', 'react-dom'],
18-
// output: {
19-
// globals: {
20-
// react: 'React',
21-
// 'react-dom': 'ReactDOM',
22-
// },
23-
// },
24-
// },
25-
// },
26-
// })
27-
286
export default defineConfig({
297
plugins: [react()],
30-
base: '/react-flowbot-ui-kit/'
31-
})
8+
build: {
9+
lib: {
10+
// Could also be a dictionary or array of multiple entry points
11+
entry: resolve(__dirname, 'src/app.tsx'),
12+
name: 'hexlet-flowbot',
13+
// the proper extensions will be added
14+
fileName: 'hexlet-flowbot',
15+
},
16+
rollupOptions: {
17+
external: ['react', 'react-dom'],
18+
output: {
19+
globals: {
20+
react: 'React',
21+
'react-dom': 'ReactDOM',
22+
},
23+
},
24+
},
25+
},
26+
})
27+
28+
// export default defineConfig({
29+
// plugins: [react()],
30+
// base: '/react-flowbot-ui-kit/'
31+
// })

0 commit comments

Comments
 (0)