From fb32d5a15e764c7aafd4094240ba000963f7c2e2 Mon Sep 17 00:00:00 2001 From: Avyaan Verma Date: Tue, 2 Jan 2024 21:44:43 +0530 Subject: [PATCH] error building --- package.json | 1 + vite.config.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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/**'], }, -}) +});