Add a warning when passing the --experimental-static-build flag (#2718)
* Add a warning when passing the --experimental-static-build flag * Disable the lint warning
This commit is contained in:
parent
d7a2ff3f51
commit
a68d6a3c68
1 changed files with 5 additions and 0 deletions
|
@ -113,6 +113,11 @@ function addTrailingSlash(str: string): string {
|
|||
|
||||
/** Convert the generic "yargs" flag object into our own, custom TypeScript object. */
|
||||
function resolveFlags(flags: Partial<Flags>): CLIFlags {
|
||||
if(flags.experimentalStaticBuild) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn(`Passing --experimental-static-build is no longer necessary and is now the default. The flag will be removed in a future version of Astro.`)
|
||||
}
|
||||
|
||||
return {
|
||||
projectRoot: typeof flags.projectRoot === 'string' ? flags.projectRoot : undefined,
|
||||
site: typeof flags.site === 'string' ? flags.site : undefined,
|
||||
|
|
Loading…
Add table
Reference in a new issue