Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bundling): run dev-server in development mode and hmr on by default #13352

Merged
merged 1 commit into from Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions docs/generated/packages/vite.json
Expand Up @@ -125,8 +125,8 @@
},
"hmr": {
"description": "Enable hot module replacement. For more options, use the 'hmr' option in the Vite configuration file.",
"default": false,
"type": "boolean"
"type": "boolean",
"default": true
},
"open": {
"description": "Automatically open the app in the browser on server start. When the value is a string, it will be used as the URL's pathname.",
Expand All @@ -144,7 +144,9 @@
},
"mode": {
"type": "string",
"description": "Specifying this in config will override the default mode for both serve and build."
"description": "Mode to run the server in.",
"enum": ["production", "development"],
"default": "development"
},
"clearScreen": {
"description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
Expand Down Expand Up @@ -280,7 +282,9 @@
},
"mode": {
"type": "string",
"description": "Specifying this in config will override the default mode for both serve and build."
"description": "Mode to run the build in.",
"enum": ["production", "development"],
"default": "production"
}
},
"definitions": {
Expand Down
4 changes: 3 additions & 1 deletion packages/vite/src/executors/build/schema.json
Expand Up @@ -121,7 +121,9 @@
},
"mode": {
"type": "string",
"description": "Specifying this in config will override the default mode for both serve and build."
"description": "Mode to run the build in.",
"enum": ["production", "development"],
"default": "production"
}
},
"definitions": {
Expand Down
8 changes: 5 additions & 3 deletions packages/vite/src/executors/dev-server/schema.json
Expand Up @@ -49,8 +49,8 @@
},
"hmr": {
"description": "Enable hot module replacement. For more options, use the 'hmr' option in the Vite configuration file.",
"default": false,
"type": "boolean"
"type": "boolean",
"default": true
},
"open": {
"description": "Automatically open the app in the browser on server start. When the value is a string, it will be used as the URL's pathname.",
Expand All @@ -75,7 +75,9 @@
},
"mode": {
"type": "string",
"description": "Specifying this in config will override the default mode for both serve and build."
"description": "Mode to run the server in.",
"enum": ["production", "development"],
"default": "development"
},
"clearScreen": {
"description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
Expand Down