How to load a local html file into a NativeScript webview

前端 未结 1 1871
逝去的感伤
逝去的感伤 2021-01-26 01:10

I have modified the webpack.config.js to add a local file called index.html the code below :

new CopyWebpackPlugin([
    { from: { glob: \"index         


        
相关标签:
1条回答
  • 2021-01-26 01:30

    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.

    0 讨论(0)
提交回复
热议问题