0.0.7 • Published 6 years ago
documentfragment-loader v0.0.7
npm install --save-dev documentfragment-loader
// webpack.config.js
{
test: /\.(html)$/,
use: ['documentfragment-loader', 'html-loader']
}
<!-- test.html -->
<div>
Hello world!
</div>
// use in code
import htmlBlock from './test.html';
var block = htmlBlock();