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 11import { join } from 'path' ;
22import { Compiler } from 'webpack' ;
33import type { ConfigLoadingOptions , SchemaLoadingOptions } from '@app-config/main' ;
4+ import type { HtmlTagObject } from 'html-webpack-plugin' ;
45
56import { regex } from './loader' ;
67
@@ -94,7 +95,9 @@ export default class AppConfigPlugin implements Options {
9495 'AppConfigPlugin' ,
9596 async ( { headTags, ...html } ) => {
9697 // 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+ ) ;
98101
99102 // eslint-disable-next-line @typescript-eslint/no-unsafe-call
100103 newTags . push ( {
You can’t perform that action at this time.
0 commit comments