wasm-pack-plugin icon indicating copy to clipboard operation
wasm-pack-plugin copied to clipboard

Feature request: watching other directories

Open rbalicki2 opened this issue 2 years ago • 2 comments

When developing locally, I have two sibling folders, core/ and website/. Website's cargo.toml references core/ via core = {path="../core"}. I'd love to have the website auto-refresh when I make changes to the core/ folder.

Is this possible? If not, I think it'd be super dandy to be able to automatically watch crates that are referenced using "path=", or to specify other folders to watch.

Thank you!

rbalicki2 avatar Feb 21 '22 17:02 rbalicki2

This should be covered?

module.exports = {
    plugins: [
        new WasmPackPlugin({
            watchDirectories: [
                path.resolve(__dirname, "core/src")
            ],
        }),
    ],
}

jcaesar avatar Jun 07 '22 11:06 jcaesar

Hey! If you need multi-folder support, please check out another package: rust-wasmpack-loader.

yeskiy avatar Jul 19 '23 11:07 yeskiy