I misunderstood what you mean.
css-loader localIdentName is not a configuration. You should also use a modular way to write css when you css.

//  js 
import common from './css/common.less'
div.className = common.box
app.appendChild(div)
$('div').addClass(common.new)

I don't know how to write the pure html part either.

Menu