首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Office外接程序任务窗格找不到html文件

Office外接程序任务窗格找不到html文件
EN

Stack Overflow用户
提问于 2022-05-24 19:33:30
回答 1查看 117关注 0票数 0

开发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

代码语言:javascript
复制
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"]
  })

我不知道我错过了什么,有人能帮忙吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-05-25 12:26:28

发现了我的问题,我几乎什么都做对了。我输入了完整的路径,但我只需要像这样指定文件名:https://localhost:3000/taskpane.html

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72368528

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档