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 1
1
import { join } from 'path' ;
2
2
import { Compiler } from 'webpack' ;
3
- import HtmlWebpackPlugin from 'html-webpack-plugin' ;
3
+ import HtmlWebpackPlugin , { HtmlTagObject } from 'html-webpack-plugin' ;
4
4
import type { ConfigLoadingOptions , SchemaLoadingOptions } from '@app-config/main' ;
5
5
6
6
import { regex } from './loader' ;
@@ -91,7 +91,9 @@ export default class AppConfigPlugin implements Options {
91
91
'AppConfigPlugin' ,
92
92
async ( { headTags, ...html } ) => {
93
93
// 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
+ ) ;
95
97
96
98
newTags . push ( {
97
99
tagName : 'script' ,
You can’t perform that action at this time.
0 commit comments