Plugin overrules http flag.
basbroens opened this issue · comments
basbroens commented
When i try to load just http with vite --http, the plugin still loads https site.
Is there anyway to direct the plugin/vite to honor http?
Said Moya - Ekoomedia commented
Just set https: false
export default defineConfig({
server: {https: false}
plugins: [mkcert()],
...
})
liuwei commented
I can't find http
option:
pnpm vite --help
vite/3.1.0
Usage:
$ vite [root]
Commands:
[root] start dev server
build [root] build for production
optimize [root] pre-bundle dependencies
preview [root] locally preview production build
For more info, run any command with the `--help` flag:
$ vite --help
$ vite build --help
$ vite optimize --help
$ vite preview --help
Options:
--host [host] [string] specify hostname
--port <port> [number] specify port
--https [boolean] use TLS + HTTP/2
--open [path] [boolean | string] open browser on startup
--cors [boolean] enable CORS
--strictPort [boolean] exit if specified port is already in use
--force [boolean] force the optimizer to ignore the cache and re-bundle
-c, --config <file> [string] use specified config file
--base <path> [string] public base path (default: /)
-l, --logLevel <level> [string] info | warn | error | silent
--clearScreen [boolean] allow/disable clear screen when logging
-d, --debug [feat] [string | boolean] show debug logs
-f, --filter <filter> [string] filter debug logs
-m, --mode <mode> [string] set env mode
-h, --help Display this message
-v, --version Display version number