Skip to content

Commit 4b6cd89

Browse files
committed
x
1 parent bf9dc8f commit 4b6cd89

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

generate-firebase-json.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ const defaultProcessFn = (builtPolicy, htmlPluginData, $) => {
3030
: $.html();
3131
};
3232

33-
var cspHeadersForSourcesGlob = [
33+
var cspHeadersForSourceGlob = [
3434
{
35-
sources: '**/*',
35+
source: '**/*',
3636
headers: [
3737
{
3838
key: 'Content-Security-Policy',
@@ -51,17 +51,17 @@ const generateFirebaseJson = (
5151
const sourcesGlob = htmlPluginData.outputName
5252
.replace(/index\.html/, "(index.html)?")
5353
.replace(/\.html/, "(\\.html)?")
54-
cspHeadersForSourcesGlob = [{
54+
cspHeadersForSourceGlob = [{
5555
sources: `^/${sourcesGlob}$`,
5656
headers: [
5757
{
5858
key: 'Content-Security-Policy',
5959
value: builtPolicy,
6060
}
6161
],
62-
}].concat(cspHeadersForSourcesGlob);
62+
}].concat(cspHeadersForSourceGlob);
6363

64-
transformerFirebase(cspHeadersForSourcesGlob);
64+
transformerFirebase(cspHeadersForSourceGlob);
6565

6666
defaultProcessFn(builtPolicy, htmlPluginData, $, compilation);
6767
};

0 commit comments

Comments
 (0)