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

npm run build generated an unnecessary .vite folder #894

Open
1 of 2 tasks
chengfengfengwang opened this issue Jun 17, 2024 · 2 comments
Open
1 of 2 tasks

npm run build generated an unnecessary .vite folder #894

chengfengfengwang opened this issue Jun 17, 2024 · 2 comments

Comments

@chengfengfengwang
Copy link

Build tool

Vite

Where do you see the problem?

  • In the browser
  • In the terminal

Describe the bug

npm run build generated an unnecessary .vite folder. It lead error in Edge Extension uploading.

Reproduction

npm run build

image

Logs

No response

System Info

System:
    OS: macOS 13.4.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 140.67 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.2 - ~/.n/bin/node
    Yarn: 1.22.19 - ~/.n/bin/yarn
    npm: 10.5.0 - ~/.n/bin/npm
    pnpm: 9.1.1 - ~/.n/bin/pnpm
    Watchman: 2024.05.06.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 125.0.6422.142
    Safari: 16.5.2
  npmPackages:
    @crxjs/vite-plugin: ^2.0.0-beta.23 => 2.0.0-beta.23 
    vite: ^5.2.0 => 5.2.13

Severity

annoyance

@udithishara
Copy link

This is due to Manifest files are now generated in .vite directory by default

As a solution you can run a script to remove it after build or just exclude it from your pack script

@satoryu
Copy link

satoryu commented Nov 9, 2024

I tried to set false to build.manifest according to the vite doc: https://vite.dev/config/build-options.html#build-manifest
but the npm run build generates manifest.json in .vite.

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

No branches or pull requests

3 participants