Skip to content

Commit aabbc69

Browse files
committed
change config.appType to custom
1 parent bbb3b42 commit aabbc69

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/html/VirtualHtmlPlugin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {HtmlPluginOptions} from "./types"
2-
import type {ConfigEnv, Plugin, UserConfig, ViteDevServer} from 'vite'
2+
import { ConfigEnv, Plugin, ResolvedConfig, UserConfig, ViteDevServer } from 'vite'
33
import {HistoryApiOptions} from "../history-api/types"
44
import { Serve } from './Serve'
55
import { Build } from './Build'
@@ -25,6 +25,7 @@ export default class VirtualHtmlPlugin implements Plugin {
2525
}
2626

2727
async config(config: UserConfig, {command}: ConfigEnv) {
28+
config.appType = 'custom'
2829
this._config = config
2930
if (command === 'serve') {
3031
const serve = new Serve(this._htmlOptions)

0 commit comments

Comments
 (0)