如何在webpack-dev-server中提供文件的异步内容

时间:2019-01-03 03:38:19

标签: webpack webpack-dev-server

我有此代码

getHTMLContent({
    url: 'https://url.com/static.html'
}).then(html => {
    // html is content of static.html (string format)
    // serve html in webpack dev server
})

我要在浏览器中预览html。如何在webpack开发服务器中提供html

0 个答案:

没有答案
相关问题