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
At present the npm tutorial is built and run on localhost.
I tried to configure the host and port settings in the webpack.config.js file, according to webpack's documentation. The goal being to build the wasm-pack npm demo on a server and then access it from a different (remote) machine. However, it seems that integrating this functionality might not be as straight forward as some config. Here is a webpack issue on the topic.
💻 Basic example
I have tried the following different configurations. These were not successful unfortunately. package.json
Perhaps there is something I am missing. Also, if there is something that you can suggest for me to go ahead and pursue; I would be happy to spend some time finding, implementing, testing and documenting a solution.
Just FYI:
Below is the original webpack.config.js file that I was using whilst having the issue of no external access (and therefore only accessing the demo from localhost).
Also the following two installations were used to make the new config succeed. npm install --save-dev @wasm-tool/wasm-pack-plugin npm install --save-dev html-webpack-plugin
Hope this helps out in some way. Please provide any feedback.
💡 Feature description
At present the npm tutorial is built and run on localhost.
I tried to configure the
host
andport
settings in thewebpack.config.js
file, according to webpack's documentation. The goal being to build the wasm-pack npm demo on a server and then access it from a different (remote) machine. However, it seems that integrating this functionality might not be as straight forward as some config. Here is a webpack issue on the topic.💻 Basic example
I have tried the following different configurations. These were not successful unfortunately.
package.json
terminal
webpack.config.js
Perhaps there is something I am missing. Also, if there is something that you can suggest for me to go ahead and pursue; I would be happy to spend some time finding, implementing, testing and documenting a solution.
Just FYI:
Thank you so much. Loving wasm-pack!
Kind regards
Tim
The text was updated successfully, but these errors were encountered: