We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd76952 commit bab9e87Copy full SHA for bab9e87
generate-firebase-json.js
@@ -38,14 +38,14 @@ const generateFirebaseJson = (
38
$,
39
compilation,
40
) => {
41
- const sourcesGlob = htmlPluginData.outputName
+ const sourceGlob = htmlPluginData.outputName
42
.replace(/404\.html/, '**/*')
43
- .replace(/index\.html/, '(index.html)?')
+ .replace(/index\.html/, '/(index.html)?')
44
.replace(/\.html/, '(\\.html)?')
45
cspHeadersForSourceGlob = cspHeadersForSourceGlob.concat(
46
[
47
{
48
- source: `^/${sourcesGlob}$`,
+ source: sourceGlob,
49
headers: [
50
51
key: 'Content-Security-Policy',
0 commit comments