In a template I’m calling a function from the js file
style="background: ${ getColor(zt_value) }"
(code at https://github.com/ome/omero-iviewer/pull/245/files#diff-ea2be679647f59abfbf8afeb346c3524R46) and this is working fine when I running with the webpack developement server.
But when I build for production this fails with the html simply rendered as
style="background: {}"
I’m not sure what it is that I’m doing differently with the prod build. My prod webpack config is at https://github.com/ome/omero-iviewer/blob/1c4454495e59c03842fed533aac65bb2a61f5dd9/webpack.prod.config.js
Or should I be using a different technique so that the template doesn’t need to call getColor()
?
Many thanks,
Will.