Open infix opened 3 years ago
Indeed --watch
option is not available now, and it is in the current work. I will make it work normally as soon as possible.
Thank you :). if it's possible I'd like to help by contributing code, but I don't know if I'll be free before the weekend
+1 for this! loving this package but supporting --watch would be perfect
Any updates on this? Is there any way we could help?
+1
@infix Can we please have an update on this?
Is this issue dead?
I want to help troubleshoot this but I'm not sure where to start.
If I can help in any way please let me know.
Indeed
--watch
option is not available now, and it is in the current work. I will make it work normally as soon as possible.
Hello, can you fix this as soon as possible, it would be very useful
+1
Hey @StarkShang, it would be great if we can get any update on this. Thanks!
Here is a workaround that seems to work using npm-watch
.
In my package.json
file I have the following:
"watch": {
"build": {
"patterns": [
"src"
],
"extensions": "ts,svelte,html",
"runOnChangeOnly": false
}
},
"scripts": {
"build": "vite build",
"watch": "npm-watch"
},
And then I simply run yarn watch
(or npm run watch
)
Thanks, @i8ramin Better than nothing.
I am also interested in this
I wasn't happy with the npm-watch solution. @StarkShang I think you are probably very busy or have moved on from this project, but maybe you could point where to where in the code you think I would need to adjust to support --watch
and I could potentially open a PR for this? Or even just a rough sketch for how you think you would tackle solving this? Thanks!
is there any update on this matter?
Looking forward to this feature, when will it be supported?
Explanation:
when running
vite build --watch
, it initially builds correctly. However, after the first change to generates an empty buildCodesandbox reproduction: https://codesandbox.io/s/vite-plugin-chrome-extension-watch-build-bug-py0nd?file=/src/main.tsx
Reproduction steps:
yarn start
(vite build --watch
) and check the/dist
directory. you'll notice that it's built correctly 09<div>Hello World</div>
inmain.tsx
to<div>Hello</div>
/dist
dir again you will notice that only 2 files are generated manifest.js and manifest.jsonBuild log:
Thank you for this great plugin, please let me know if there's anything I can do to help :)