Closed ChrRubin closed 2 years ago
Interesting, if I delete the demos/vanilla/dist
directory, and run pnpm build
, it does not fail. Here's what I did:
git checkout main
git pull
cd demos/vanilla
rm -rf dist
pnpm build
What exact steps are you taking?
I was using yarn
to install dependencies and npx vite build
to build, but I just tried pnpm build
on a fresh git clone and it still fails.
I don't have any contribution docs about setting up the repo... I'll add those. Could you share the exact commands from a fresh clone? I tried this and everything worked:
git clone git@github.com:aklinker1/vite-plugin-web-extension.git
cd vite-plugin-web-extension
pnpm i
cd demos/vanilla
pnpm vite build
I've also added some E2E tests that specifically test this, and they're all passing.
What OS are you using? Maybe it's OS dependent?
Since 1.0.5, build will fail whenever the output folder does not exist. Here's the output when building the vanilla demo:
This wasn't the case on 1.0.4. Not particularly detrimental, but it is slightly inconvenient since with
emptyOutDir
the output folder is removed if the build is cancelled partway.