We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53c66a0 commit 14aa992Copy full SHA for 14aa992
app-config-webpack/src/index.ts
@@ -78,18 +78,13 @@ export default class AppConfigPlugin {
78
HtmlWebpackPlugin.getHooks(compilation).alterAssetTagGroups.tapPromise(
79
'AppConfigPlugin',
80
async ({ headTags, ...html }) => {
81
- const { fullConfig } = await loadValidatedConfig(
82
- this.loadingOptions,
83
- this.schemaLoadingOptions,
84
- );
85
-
86
// remove placeholder <script id="app-config"></script> if it exists
87
const newTags = headTags.filter(({ attributes }) => attributes.id !== 'app-config');
88
89
newTags.push({
90
tagName: 'script',
91
attributes: { id: 'app-config', type: 'text/javascript' },
92
- innerHTML: `window._appConfig = ${JSON.stringify(fullConfig)}`,
+ innerHTML: ``,
93
voidTag: false,
94
});
95
0 commit comments