First off, I’m using https://www.snowpack.dev/ and not Webpack, so I am not bundling everything into one file.
A problem I have run into is that dfx deploy is ignoring hidden directories inside of asset canister upload directories. It will not upload them to the canister. This is causing problems for me when using Snowpack, messing up my import aliases, as I have to alias into the
.dfx directory, which is technically hidden. Snowpack takes this directory and potentially builds it and puts it into my asset canister upload directory.
I think it’s unexpected that dfx deploy would ignore hidden directories. For example, git does not ignore hidden directories unless you explicitly ignore those directories. I would expect all directories and files in the asset canister upload directory to be uploaded to the directory, and perhaps to have some sort of ignore configuration for everything else.