git address:
1,
2
3, problems encountered
html~~
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.
Previous: Php, website visit ip according to time record
Next: Webpack4 configuration Public JS and CSS are not packaged, only do separate compression