When using dotdotdot to truncate HTML, you don't need to worry about your HTML markup, the plugin knows its way around most elements. It's responsive, so when resizing the browser, the ellipsis will update on the fly.
Need help? Have a look at the documentation.
This project uses Gulp(4) to minify the JS file. If you are unfamiliar with Gulp, check this tutorial on how to get started.
gulp watch in the command-line to put a watch on the files and run all scripts immediately after saving your changes.