Skip to content

Commit 7e668b5

Browse files
authored
Merge pull request #121 from akrantz/from-taskpane
Merge changes from Office-Addin-TaskPane
2 parents 88fec93 + 344013b commit 7e668b5

File tree

4 files changed

+51
-64
lines changed

4 files changed

+51
-64
lines changed

Debugging.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
# Debugging
22

3+
## Prerequisites
4+
5+
1. Node.js version 8 or higher.
6+
2. VS Code - latest version recommended.
7+
8+
## First Time
9+
10+
1. Trust the SSL certificates for `https://localhost`. [More info](https://github.com/OfficeDev/generator-office/blob/master/src/docs/ssl.md)
11+
2. On Mac, enable debugging for the webview using Safari Web Inspector.
12+
13+
In a Terminal window, run these commands:
14+
```
15+
defaults write com.microsoft.Word OfficeWebAddinDeveloperExtras -bool true
16+
defaults write com.microsoft.Excel OfficeWebAddinDeveloperExtras -bool true
17+
defaults write com.microsoft.Powerpoint OfficeWebAddinDeveloperExtras -bool true
18+
defaults write com.microsoft.Outlook OfficeWebAddinDeveloperExtras -bool true
19+
```
20+
321
## Using Visual Studio Code
422
523
1. Open the folder in VS Code.
624
2. Run the `Watch` task using `Terminal`, `Run Task`.
725
3. Run the `Dev Server` task using `Terminal`, `Run Task`.
826
27+
The first time, open a browser to https://localhost:3000 to verify that the SSL certificates are trusted.
928
1029
### Office Online (Edge - Windows 10 / Chrome - Mac)
1130
1. Switch to the Debug view using `View`, `Debug` or press Ctrl+Shift+D.

package-lock.json

Lines changed: 25 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/taskpane/taskpane.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<!--<link rel="stylesheet" href="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-js/1.2.0/css/fabric.components.min.css" />-->
2424

2525
<!-- Template styles -->
26-
<link href="taskpane/taskpane.css" rel="stylesheet" type="text/css" />
26+
<link href="taskpane.css" rel="stylesheet" type="text/css" />
2727
</head>
2828

2929
<body class="ms-font-m ms-welcome">

webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ module.exports = (env, options) => {
5252
template: "./src/taskpane/taskpane.html",
5353
chunks: ["taskpane"]
5454
}),
55+
new CopyWebpackPlugin([
56+
{
57+
to: "taskpane.css",
58+
from: "./src/taskpane/taskpane.css"
59+
}
60+
]),
5561
new HtmlWebpackPlugin({
5662
filename: "ribbon.html",
5763
template: "./src/ribbon/ribbon.html",

0 commit comments

Comments
 (0)