I'm currently extending the mumble-web code [1] and load some extra data from a JSON string. To do that I want to use the mapping plugin.
How do I "install" or "use" the plugin in in generell (I know that I have to call ko.mapping.fromJSON in the code).
How do I include the plugin specifically with webpack?
So far I have found some snipped on StackOverflow, but adding the entry and plugins part to my webpack.config.js ended up with
…/mumble-web/node_modules/webpack-cli/bin/cli.js:93
throw err;
^
ReferenceError: webpack is not defined
So I think that was not the correct path to follow.
I would be very happy if some one can help me with that.
Natanael