npm install html-pug-to-js-loader --save-dev
{
test: /\.(pug|html)$/,
loader: 'html-pug-to-js-loader',
query: {
wrap: 'es6'
}
},
import tpl from './b.pug';
import t from './c.html';
var e = require('./b.pug');
var h = require('./b.html');