<div dir="ltr">Hi Rok,<div><br></div><div>Thanks for reporting back. I guess trying to fix documentation on Sunday night while doing other things might not be the best idea. ;-)</div><div>Anyhow, I did push some fix and hopefully I did not miss anything else. (The website should be updated in ~5 minutes)</div><div><br></div><div>Let me know if you run into anything else.</div><div><br></div><div>But in your case you just need to add the following line inside the array of "rules":</div><div><br></div><div>{ test: /\.html$/, loader: 'html-loader' },<br></div><div><br></div><div>Seb</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 4, 2017 at 11:32 PM, oblakr <span dir="ltr"><<a href="mailto:2448.rok@gmail.com" target="_blank">2448.rok@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
thanks, the example was updated, but it would still not build:<br>
<br>
First, it says sourcePath in webpack.config.js is not defined - it really<br>
isn't, so I changed it to "entry" (which is defined at the top.<br>
Then, it said " - configuration.output.path: The provided value "./dist" is<br>
not an absolute path!". I fixed this by changing the "path: './dist'," to<br>
"path: path.join(__dirname, './dist'),".<br>
<br>
This time it got still further, but I got another error:<br>
<br>
ERROR in ./src/controller.html<br>
Module parse failed: /Users/rokoblak/Desktop/<wbr>vtkapp/src/controller.html<br>
Unexpected token (1:0)<br>
You may need an appropriate loader to handle this file type.<br>
|<br>
<br>
|<br>
<br>
|<br>
 @ ./src/index.js 9:0-45<br>
 @ ./src/index.js<br>
<br>
<br>
This one I don't know how to resolve, since I have next to no experience<br>
with Webpack.<br>
<br>
Cheers,<br>
Rok<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not-working-tp5743535p5743545.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.<wbr>com/VTK-js-Using-vtk-js-as-an-<wbr>ES6-dependency-example-not-<wbr>working-tp5743535p5743545.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>