If I want to display a local html file in a Webview, how can I do it?
Tried Solutions:
- absolut path to the respective html I want to display in the webview as shown here:
Absolute path/ encodeURI
this.htmlPath = encodeURI(`${fs.knownFolders.currentApp().path}/monitordaten/webview/assets/graph.html`);
<Webview #myWebView [src]="htmlPath" ></Webview>
- editing webpack.config.js like this:
this solution was mentioned here: edit webpack.config.js
new CopyWebpackPlugin([
{ from: { glob: "monitrodaten/webview/assets/**"} }, <= Added this row
{ from: { glob: "fonts/**" } },
{ from: { glob: "**/*.jpg" } },
...

