-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Build and build -w output differs #594
Comments
That's probably coming from this line: imagetools/packages/vite/src/index.ts Line 113 in 76ccb91
That line should probably be updated to check if we're in build mode or dev mode instead. I don't know that I'll get to this for awhile, but a PR would be welcome. I can review and merge quickly if you'd like to take stab at it |
Switched to use
However, the unit tests using the Javascript API seem to have this as always false, even if you set This, of course, breaks the output paths for all the tests. Any thoughts off-hand? |
This is because NODE_ENV is set while unit testing to This leads me to think that
|
Thank you for the fix! #595 |
Thanks for the fast responses! |
Problem
The outputted images for
vite build -w
have the/@imagetools/*
reference, which consumers of my library cannot interpret or find.My workaround
Running
build
(no watch) with chokidar to publish updates to calc locally works, but has it's own problems (e.g. production build, no HMR, etc).I statically copy the images from the npm package (I'm using chokidar/yalc to publish the changes when the
dist
folder of the Component Lib changes).Possible solutions
/@imagetools
files, and I can try to see if I can manually copy those in dev mode.The text was updated successfully, but these errors were encountered: