Skip to content Skip to sidebar Skip to footer

How To Load A Local Html File Into A Nativescript Webview

I have modified the webpack.config.js to add a local file called index.html the code below : new CopyWebpackPlugin([ { from: { glob: 'index.html' } }, { from: { glob: 'font

Solution 1:

In NativeScript, by default, the tilde (~) marks the app root folder (note the App and not the Project!). So if your file is located in <project-name>/app/index.html try setting the path with ~/index.html.


Post a Comment for "How To Load A Local Html File Into A Nativescript Webview"