File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11import { join } from 'path' ;
22import { Compiler } from 'webpack' ;
3- import HtmlWebpackPlugin from 'html-webpack-plugin' ;
3+ import HtmlWebpackPlugin , { HtmlTagObject } from 'html-webpack-plugin' ;
44import type { ConfigLoadingOptions , SchemaLoadingOptions } from '@app-config/main' ;
55
66import { regex } from './loader' ;
@@ -91,7 +91,9 @@ export default class AppConfigPlugin implements Options {
9191 'AppConfigPlugin' ,
9292 async ( { headTags, ...html } ) => {
9393 // remove placeholder <script id="app-config"></script> if it exists
94- const newTags = headTags . filter ( ( { attributes } ) => attributes . id !== 'app-config' ) ;
94+ const newTags : HtmlTagObject [ ] = headTags . filter (
95+ ( { attributes } ) => attributes . id !== 'app-config' ,
96+ ) ;
9597
9698 newTags . push ( {
9799 tagName : 'script' ,
You can’t perform that action at this time.
0 commit comments