处理模板文件
\
app.js
import layer from './components/layer/layer.js';
import '../css/common.css';
const App = function () {
var dom = document.getElementById('app');
var layer = new layer();
dom.innerHTML = layer.tpl
}
new App();
{
test:/.\html$/,
loader:'html-loader'
}