How to add a new html page to my react outlook add-in

Isora Dolage 21 Reputation points
2022-06-24T04:13:06.477+00:00

I created a new outlook add-in using the react-taskpane option in the yeoman generator. I need to insert a new html page to prompt it when there's no signed user is present.

This is the file structure:
214515-files.png

I didn't change the manifest file. But, I included the following in the webpackconfig.js file:

new HtmlWebpackPlugin({
filename: "Handler.html",
template: "./src/AppCommon/Auth/Handler.html",
chunks: ["Handler"],
}),

When I run npm run build Handler.html gets included in the dist folder. How can I prompt that page in a separate window? (The logic to check whether the user is logged in or not is not needed).

![214567-image.png]2

Please refer this link: https://stackoverflow.com/questions/72738845/how-to-add-a-new-html-page-to-my-react-outlook-add-in

Microsoft 365 and Office Development Office JavaScript API
Microsoft 365 and Office Development Other
Outlook Windows Classic Outlook for Windows For business
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.