I am using html-webpack-plugin to process html files.
I need to remove some parts before i export for server. I found a couple plugins to do this but they are outdated or doesn't work with webpack 4.
This is my config for html-webpack-plugin.
I marked the parts i wanted to remove like this.
<!--deletestart-->
code to be removed.
<!--deleteend-->
Is there any working plugin or a way to do this with webpack 4? Thanks.