开发Outlook的office外接程序。我遵循这个教程来启动我的项目。
我尝试实现一个新的任务窗格,但是当我打开它时,我得到了一个错误:Failed to load resource: the server responded with a status of 404 (Not Found)。
当我在https://localhost:3000/src/taskpane/taskpane.html尝试访问sideloading时,页面只包含Cannot GET /src/taskpane/taskpane.html。
清单中没有错误,我用以下内容更新了webpack.config.js:
entry: {
polyfill: ["core-js/stable", "regenerator-runtime/runtime"],
taskpane: "./src/taskpane/taskpane.js"
}
new HtmlWebpackPlugin({
filename: "taskpane.html",
template: "./src/taskpane/taskpane.html",
chunks: ["polyfill", "taskpane"]
})我不知道我错过了什么,有人能帮忙吗?
发布于 2022-05-25 12:26:28
发现了我的问题,我几乎什么都做对了。我输入了完整的路径,但我只需要像这样指定文件名:https://localhost:3000/taskpane.html
https://stackoverflow.com/questions/72368528
复制相似问题