Skip to content

Commit 0ecee80

Browse files
committed
fix: lint
1 parent a2414f8 commit 0ecee80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app-config-webpack/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'path';
22
import { Compiler } from 'webpack';
3-
import HtmlWebpackPlugin from 'html-webpack-plugin';
3+
import HtmlWebpackPlugin, { HtmlTagObject } from 'html-webpack-plugin';
44
import type { ConfigLoadingOptions, SchemaLoadingOptions } from '@app-config/main';
55

66
import { 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',

0 commit comments

Comments
 (0)