-
Notifications
You must be signed in to change notification settings - Fork 330
fix(docs): Remove environmental configuration and add user configuration prompts #3109
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -40,10 +40,7 @@ import { defineConfig } from 'vite' | |||||||||||||||||
| import vue from '@vitejs/plugin-vue' | ||||||||||||||||||
|
|
||||||||||||||||||
| export default defineConfig({ | ||||||||||||||||||
| plugins: [vue()], | ||||||||||||||||||
| define: { | ||||||||||||||||||
| 'process.env': { ...process.env } | ||||||||||||||||||
| } | ||||||||||||||||||
| plugins: [vue()] | ||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Vite configuration has been simplified, but without updating the documentation The code example has been simplified to remove the Consider updating the tip to explain how to set environment variables with the new simplified configuration or add the proper configuration example: plugins: [vue()]
+ // If you need to set environment variables:
+ define: {
+ 'process.env': {
+ TINY_MODE: 'pc'
+ }
+ }📝 Committable suggestion
Suggested change
|
||||||||||||||||||
| }) | ||||||||||||||||||
| ``` | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.