diff --git a/README.md b/README.md index 75c6a2c..8d9b36f 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ ```bash npm i @hexlet/chatbot-v2 ``` -1. Импортировать стили: +2. Импортировать стили: ```javascript import '@hexlet/chatbot-v2/styles' ``` -1. Импортировать и запустить бота: +3. Импортировать и запустить бота: ```javascript import app from 'chatbot-v2'; diff --git a/vite.config.ts b/vite.config.ts index d592f41..ee292da 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,24 +3,29 @@ import react from '@vitejs/plugin-react'; import { resolve } from 'path'; // 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', - }, - }, - }, - }, -}) + base: '/react-flowbot-ui-kit/' +}) \ No newline at end of file