Skip to content

Commit

Permalink
fix vite config
Browse files Browse the repository at this point in the history
  • Loading branch information
dzencot committed Feb 14, 2024
1 parent d21545c commit 138aa2a
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@ import { resolve } from 'path';
// for publishing as npm package

// https://vitejs.dev/config/
// export default defineConfig({
// plugins: [react()],
// build: {
// lib: {
// // Could also be a dictionary or array of multiple entry points
// entry: resolve(__dirname, 'src/app.tsx'),
// name: 'hexlet-flowbot',
// // the proper extensions will be added
// fileName: 'hexlet-flowbot',
// },
// rollupOptions: {
// external: ['react', 'react-dom'],
// output: {
// globals: {
// react: 'React',
// 'react-dom': 'ReactDOM',
// },
// },
// },
// },
// })
export default defineConfig({
plugins: [react()],
build: {
lib: {
// Could also be a dictionary or array of multiple entry points
entry: resolve(__dirname, 'src/app.tsx'),
name: 'hexlet-flowbot',
// the proper extensions will be added
fileName: 'hexlet-flowbot',
},
rollupOptions: {
external: ['react', 'react-dom'],
output: {
globals: {
react: 'React',
'react-dom': 'ReactDOM',
},
},
},
},
})

// for deploying on github pages

export default defineConfig({
plugins: [react()],
base: '/react-flowbot-ui-kit/'
})
// export default defineConfig({
// plugins: [react()],
// base: '/react-flowbot-ui-kit/'
// })

0 comments on commit 138aa2a

Please sign in to comment.