Skip to content

Commit 235e58a

Browse files
authored
Update shared runtime sample to use GA endpoint (#91)
* Switch from beta to GA endpoint * remove certs as consumer must generate * functions.html not needed for shared runtime * fix declaration of g warning * npm audit fix * added functions chunk to webpack to load functions.js * restore customfunction.associate calls for now
1 parent e8f6e89 commit 235e58a

File tree

12 files changed

+1601
-728
lines changed

12 files changed

+1601
-728
lines changed

Samples/excel-shared-runtime-scenario/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ packages/**
6464
typings/**
6565
.vscode/**
6666
.awcache/**
67+
certs/**
6768

6869
dist/**

Samples/excel-shared-runtime-scenario/certs/ca.crt

Lines changed: 0 additions & 23 deletions
This file was deleted.

Samples/excel-shared-runtime-scenario/certs/server.crt

Lines changed: 0 additions & 21 deletions
This file was deleted.

Samples/excel-shared-runtime-scenario/certs/server.key

Lines changed: 0 additions & 27 deletions
This file was deleted.

Samples/excel-shared-runtime-scenario/config/webpack.common.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -123,24 +123,22 @@ module.exports = {
123123
output: "functions.json",
124124
input: "./src/functions/functions.ts"
125125
}),
126-
new HtmlWebpackPlugin({
127-
title: 'Office-Add-in-Microsoft-Graph-React',
128-
filename: './functions/functions.html',
129-
template: './functions/functions.html',
130-
chunks: ['functions']
131-
}),
132126
new HtmlWebpackPlugin({
133127
title: 'Office-Add-in-Microsoft-Graph-React',
134128
filename: 'login/connect.html',
135129
template: '../login/connect.html',
136130
chunks: ['connect']
137131
}),
138-
new CopyWebpackPlugin([
139-
{
140-
from: '../assets',
141-
ignore: ['*.scss'],
142-
to: 'assets',
143-
}
144-
])
132+
new CopyWebpackPlugin({
133+
patterns: [
134+
{
135+
from: '../assets',
136+
globOptions: {
137+
ignore: ['*.scss']
138+
},
139+
to: 'assets'
140+
},
141+
],
142+
}),
145143
]
146144
};

0 commit comments

Comments
 (0)