Skip to content

Commit

Permalink
Add advice to ensure copying of src files to app
Browse files Browse the repository at this point in the history
Added advice -- the of CopyWebpackPlugin globs -- to mitigate errors in loading local src files because they were not copied to from the source code as mentioned on NativeScript/NativeScript#6377 (comment)
  • Loading branch information
Celso Bessa authored Sep 2, 2020
1 parent 30302ae commit d430283
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/ns-ui-widgets-category/web-view/source-load/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ The example demonstrates, how to load content in the WebView component, while us
XML
<snippet id='web-view-xml-local-file'/>

Add WebView `src` from local file
Add WebView `src` from local file. You might need to add a glob for your HTML paths to the copy plugin in webpack.config.js. e.g. `new CopyWebpackPlugin([ { from: { glob: "www/*.html" } }]`

<snippet id='web-view-src-local-file'/>
<snippet id='web-view-src-local-file-ts'/>
<snippet id='web-view-src-local-file-ts'/>

0 comments on commit d430283

Please sign in to comment.