File tree 6 files changed +18
-15
lines changed
6 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 17
17
"lint" : " eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0" ,
18
18
"prettier" : " office-addin-lint prettier" ,
19
19
"preview" : " vite preview" ,
20
- "start" : " office-addin-debugging start manifest.xml" ,
21
- "start:desktop" : " office-addin-debugging start manifest.xml desktop" ,
22
- "start:web" : " office-addin-debugging start manifest.xml web" ,
23
- "stop" : " office-addin-debugging stop manifest.xml" ,
24
- "validate" : " office-addin-manifest validate manifest.xml"
20
+ "start" : " office-addin-debugging start src/ manifest.xml" ,
21
+ "start:desktop" : " office-addin-debugging start src/ manifest.xml desktop" ,
22
+ "start:web" : " office-addin-debugging start src/ manifest.xml web" ,
23
+ "stop" : " office-addin-debugging stop src/ manifest.xml" ,
24
+ "validate" : " office-addin-manifest validate src/ manifest.xml"
25
25
},
26
26
"dependencies" : {
27
27
"@fluentui/react" : " ^8.52.3" ,
Original file line number Diff line number Diff line change 9
9
10
10
<!-- Office JavaScript API -->
11
11
< script type ="text/javascript " src ="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js "> </ script >
12
- < script type ="module " src ="/src/ commands/commands.ts "> </ script >
12
+ < script type ="module " src ="/commands/commands.ts "> </ script >
13
13
</ head >
14
14
15
15
< body >
Original file line number Diff line number Diff line change 16
16
<Host Name =" Workbook" />
17
17
</Hosts >
18
18
<DefaultSettings >
19
- <SourceLocation DefaultValue =" https://localhost:3000/taskpane.html" />
19
+ <SourceLocation DefaultValue =" https://localhost:3000/taskpane/taskpane .html" />
20
20
</DefaultSettings >
21
21
<Permissions >ReadWriteDocument</Permissions >
22
22
<VersionOverrides xmlns =" http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi : type =" VersionOverridesV1_0" >
68
68
</bt : Images >
69
69
<bt : Urls >
70
70
<bt : Url id =" GetStarted.LearnMoreUrl" DefaultValue =" https://go.microsoft.com/fwlink/?LinkId=276812" />
71
- <bt : Url id =" Commands.Url" DefaultValue =" https://localhost:3000/commands.html" />
72
- <bt : Url id =" Taskpane.Url" DefaultValue =" https://localhost:3000/taskpane.html" />
71
+ <bt : Url id =" Commands.Url" DefaultValue =" https://localhost:3000/commands/commands .html" />
72
+ <bt : Url id =" Taskpane.Url" DefaultValue =" https://localhost:3000/taskpane/taskpane .html" />
73
73
</bt : Urls >
74
74
<bt : ShortStrings >
75
75
<bt : String id =" GetStarted.Title" DefaultValue =" Get started with your sample add-in!" />
Original file line number Diff line number Diff line change 18
18
href ="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-core/11.0.0/css/fabric.min.css " />
19
19
20
20
<!-- Template styles -->
21
- < link href ="/src/ taskpane/taskpane.css " rel ="stylesheet " type ="text/css " />
22
- < script type ="module " src ="/src/ taskpane/index.tsx "> </ script >
21
+ < link href ="/taskpane/taskpane.css " rel ="stylesheet " type ="text/css " />
22
+ < script type ="module " src ="/taskpane/index.tsx "> </ script >
23
23
</ head >
24
24
25
25
< body class ="ms-font-m ms-Fabric ">
File renamed without changes.
Original file line number Diff line number Diff line change @@ -14,15 +14,18 @@ async function getHttpsOptions() {
14
14
export default defineConfig ( async ( { mode} ) => ( {
15
15
plugins : [ react ( ) , eslint ( ) , officeAddin ( {
16
16
devUrl : "https://localhost:3000" ,
17
- prodUrl : "https://www.contoso.com/ " // CHANGE THIS TO YOUR PRODUCTION DEPLOYMENT LOCATION
17
+ prodUrl : "https://www.contoso.com" // CHANGE THIS TO YOUR PRODUCTION DEPLOYMENT LOCATION
18
18
} ) ] ,
19
+ root : "src" ,
19
20
build : {
20
21
rollupOptions : {
21
22
input : {
22
- "taskpane" : "taskpane.html" ,
23
- "commands" : "commands.html" ,
23
+ "taskpane" : "/taskpane/ taskpane.html" ,
24
+ "commands" : "/commands/ commands.html" ,
24
25
} ,
25
- }
26
+ } ,
27
+ outDir : "../dist" ,
28
+ emptyOutDir : true
26
29
} ,
27
30
server : mode !== "production" ? { https : await getHttpsOptions ( ) } : { }
28
31
} ) ) ;
You can’t perform that action at this time.
0 commit comments