File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { join } from 'path' ;
2
2
import { Compiler } from 'webpack' ;
3
3
import type { ConfigLoadingOptions , SchemaLoadingOptions } from '@app-config/main' ;
4
+ import type { HtmlTagObject } from 'html-webpack-plugin' ;
4
5
5
6
import { regex } from './loader' ;
6
7
@@ -94,7 +95,9 @@ export default class AppConfigPlugin implements Options {
94
95
'AppConfigPlugin' ,
95
96
async ( { headTags, ...html } ) => {
96
97
// remove placeholder <script id="app-config"></script> if it exists
97
- const newTags = headTags . filter ( ( { attributes } ) => attributes . id !== 'app-config' ) ;
98
+ const newTags : HtmlTagObject [ ] = headTags . filter (
99
+ ( { attributes } ) => attributes . id !== 'app-config' ,
100
+ ) ;
98
101
99
102
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
100
103
newTags . push ( {
You can’t perform that action at this time.
0 commit comments