You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a directory in my source public, and in directory public I have my index.html. My scripts are located in public/dist. However when bundled it looks for the wasm file in the public dir instead of in public/dist where it is located.
@Norlock I guess you first need output.path to point to public/dist. Also, you need publicPath only when you serve contents from a specific subdirectory. Assuming your public (or public/dist) is not subdirectory but a document root for your server application, I don't think you need publicPath. Sorry if none of my words are irrelevant for I haven't used your config to actually test it out.
Also, if you are using Webpack 5, make sure to specify experiments.syncWebAssembly: true.
I have a directory in my source public, and in directory public I have my index.html. My scripts are located in public/dist. However when bundled it looks for the wasm file in the public dir instead of in public/dist where it is located.
webpack.config.zip
The text was updated successfully, but these errors were encountered: