diff --git a/package.json b/package.json index adf666e..2e12af2 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "private": true, "version": "0.0.0", "type": "module", + "homepage": "https://gitname.github.io/react-docs-app ", "scripts": { "dev": "vite", "build": "vite build", diff --git a/vite.config.js b/vite.config.js index 6d4259f..05fb509 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,9 +1,14 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + build: { + rollupOptions: { + external: ['react-icons/lu'], + }, + }, resolve: { alias: { // ...other aliases @@ -11,7 +16,7 @@ export default defineConfig({ // Add or update the assetsInclude option assetsInclude: ['src/assets/**'], }, -}) +});