Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Vite config for Vue App #8918

Closed
harinlee0803 opened this issue May 28, 2024 · 1 comment
Closed

Custom Vite config for Vue App #8918

harinlee0803 opened this issue May 28, 2024 · 1 comment

Comments

@harinlee0803
Copy link

Description

I am working with the Vite Vue app type (https://bit.cloud/bitdev/vue/app-types/vite-vue) and I am wondering how I should configure a custom vite.config.js file for the Vue App?

Specifications

  • Bit version: 1.6.157
  • Node version:
  • npm / yarn version:
  • Platform: Mac
  • Bit compiler (include version):
  • Bit tester (include version):

Context and additional information

I am following this blog guide: https://blog.bitsrc.io/vue-js-with-vite-best-practices-and-tips-c60fcb9491cf and have kept my vite config file at the root of my vue app component like I would for a normal vue app. The simple vite.config.ts file is shown below.

import { defineConfig } from 'vite'

export default defineConfig({
  base: '/my-base-url/'
})

Running the bit app using bit run [app-name] does not use the vite.config.ts file.

@harinlee0803
Copy link
Author

harinlee0803 commented May 28, 2024

Nevermind. It works! I just had to run bit install before using bit run [app-name]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant