Install the plugin:
npm install lasso-image --save
Enable the plugin:
The following code can be used to get image info (URL, width and height) on both the server and the client:
var lassoImage = ;lassoImage;
Referenced images will automatically be bundled and written and the URL for the bundled image will be returned. The result is cached (on the server) so there is no performance penalty in making subsequent calls for the same image path.