我是 webpack 的新手,并试图弄清楚如何在 webpack-dev-server 中使用我自己的 html 文件,以及我的 webpack 构建。
在我的 app.js 中,我有:
require('!jade!index.jade')
但这并不index.html
像我期望的那样。相反,似乎充其量我可以得到我的 html 的字符串输出,这不是我想要的:
var jade = require('!jade!index.jade')
jade() //outputs my html
如何让它输出 index.html 文件?如何让 webpack-dev-server 使用该 html 文件?
我还应该提到我的玉文件可能会引用手写笔文件